[Ironpython-users] IronPython, Daily Digest 4/3/2014
CodePlex
no_reply at codeplex.com
Fri Apr 4 09:28:49 CEST 2014
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New issue] int type missing __eq__ method
----------------------------------------------
ISSUES
1. [New issue] int type missing __eq__ method
http://ironpython.codeplex.com/workitem/35099
User ntimkovich has proposed the issue:
"In trying to install the back-ported enum package from Python 3.4, I came across what seems to be a strange quirk: the built-in int type does not have an __eq__ attribute for testing integer equality. The enum package strikes upon this when it tries to copy the attributes/methods from the base integer type into the IntEnum class.
I know not if IronPython isn't complying with some spec, but it seems to be the odd-man-out.
D:\>py -2.7 -c "print(getattr(int, '__eq__'))"
<method-wrapper '__eq__' of type object at 0x000000001E2947D0>
D:\>py -3.3 -c "print(getattr(int, '__eq__'))"
<slot wrapper '__eq__' of 'int' objects>
D:\>ipy -c "print(getattr(int, '__eq__'))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'type' object has no attribute '__eq__'
D:\>ipy -c "print(getattr(int(0), '__eq__'))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'int' object has no attribute '__eq__'
Respective versions:
Python 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:35:05) [MSC v.1600 64 bit (AMD64)] on win32
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32
IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.18444 (32-bit)
"
----------------------------------------------
----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.
To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140404/0d01099d/attachment.html>
More information about the Ironpython-users
mailing list