Issue1980

classification
Title: ast.Eq, ast.Gt, ast.GtE, ast.In, ast.Is, ast.IsNot, ast.Lt, ast.LtE, ast.NotEq and ast.NotIn should be subclasses of ast.cmpop
Type: Severity: normal
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: Arfrever, fwierzbicki
Priority: low Keywords:

Created on 2012-10-23.21:54:48 by Arfrever, last changed 2013-02-27.18:33:03 by fwierzbicki.

Messages
msg7485 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2012-10-23.21:54:48
ast.Eq, ast.Gt, ast.GtE, ast.In, ast.Is, ast.IsNot, ast.Lt, ast.LtE, ast.NotEq and ast.NotIn should be subclasses of ast.cmpop.
This bug is present in Jython 2.5 and 2.7.

In Jython 2.7:

>>> import ast
>>> [issubclass(getattr(ast, x), ast.cmpop) for x in ('Eq', 'Gt', 'GtE', 'In', 'Is', 'IsNot', 'Lt', 'LtE', 'NotEq', 'NotIn')]
[False, False, False, False, False, False, False, False, False, False]

In CPython 2.7:

>>> import ast
>>> [issubclass(getattr(ast, x), ast.cmpop) for x in ('Eq', 'Gt', 'GtE', 'In', 'Is', 'IsNot', 'Lt', 'LtE', 'NotEq', 'NotIn')]
[True, True, True, True, True, True, True, True, True, True]
History
Date User Action Args
2013-02-27 18:33:03fwierzbickisetpriority: low
assignee: fwierzbicki
2012-10-23 21:54:48Arfrevercreate