Message7485

Author Arfrever
Recipients Arfrever, fwierzbicki
Date 2012-10-23.21:54:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351029288.85.0.549318702941.issue1980@psf.upfronthosting.co.za>
In-reply-to
Content
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
2012-10-23 21:54:48Arfreversetrecipients: + Arfrever, fwierzbicki
2012-10-23 21:54:48Arfreversetmessageid: <1351029288.85.0.549318702941.issue1980@psf.upfronthosting.co.za>
2012-10-23 21:54:48Arfreverlinkissue1980 messages
2012-10-23 21:54:48Arfrevercreate