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 eltoder
Recipients eltoder
Date 2011-05-03.02:11:21
SpamBayes Score 1.1173584e-06
Marked as misclassified No
Message-id <1304388682.39.0.687842914438.issue11983@psf.upfronthosting.co.za>
In-reply-to
Content
A comment in the definition of PyCodeObject in Include/code.h says:

/* The rest doesn't count for hash or comparisons */

which, I think, makes a lot of sense. The implementation doesn't follow this comment, though. code_hash actually includes co_name and code_richcompare includes co_name and co_firstlineno. This makes hash and comparison inconsistent with each other and with the comment.
History
Date User Action Args
2011-05-03 02:11:22eltodersetrecipients: + eltoder
2011-05-03 02:11:22eltodersetmessageid: <1304388682.39.0.687842914438.issue11983@psf.upfronthosting.co.za>
2011-05-03 02:11:21eltoderlinkissue11983 messages
2011-05-03 02:11:21eltodercreate