This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients David MacIver, Kevin Shweh, Tijs Van Oevelen, arigo, donmez, ezio.melotti, fijall, ncoghlan, r.david.murray, rhettinger, serhiy.storchaka, torsten
Date 2015-12-13.10:53:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I think we should focus on fixing the spec for code object equivalents.  Perhaps the test can be simplified to use (co_firstlineno, co_firstrowno, co_filename).

This is not enough if the code was compiled from a string.

>>> x = eval('lambda: 1')
>>> y = eval('lambda: 1.0')
>>> x.__code__ == y.__code__
>>> x.__code__.co_filename == y.__code__.co_filename
Date User Action Args
2015-12-13 10:53:11serhiy.storchakasetrecipients: + serhiy.storchaka, arigo, rhettinger, ncoghlan, donmez, ezio.melotti, r.david.murray, torsten, fijall, David MacIver, Kevin Shweh, Tijs Van Oevelen
2015-12-13 10:53:11serhiy.storchakasetmessageid: <>
2015-12-13 10:53:11serhiy.storchakalinkissue25843 messages
2015-12-13 10:53:11serhiy.storchakacreate