Message256321
| 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 |
<1450003991.78.0.300753362499.issue25843@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年12月13日 10:53:11 | serhiy.storchaka | set | recipients:
+ 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:11 | serhiy.storchaka | set | messageid: <1450003991.78.0.300753362499.issue25843@psf.upfronthosting.co.za> |
| 2015年12月13日 10:53:11 | serhiy.storchaka | link | issue25843 messages |
| 2015年12月13日 10:53:11 | serhiy.storchaka | create |
|