Serhiy Storchaka added the comment:
> 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__
True
>>> x.__code__.co_filename == y.__code__.co_filename
True
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25843>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com