[issue11983] Inconsistent hash and comparison for code objects

Caelyn McAulay report at bugs.python.org
Mon Apr 14 19:40:58 CEST 2014


Caelyn McAulay added the comment:

Here is a patch to add the requested documentation to code.h - I expanded it to specify (as per the conversation in this issue) that co_name is used in both hash and comparisons while co_firstlineno is used only in comparisons. 

I do not attempt explain the inconsistency; but let the comment reflect reality.

----------
keywords: +patch
nosy: +math_foo
Added file: http://bugs.python.org/file34828/comment11983.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11983>
_______________________________________


More information about the Python-bugs-list mailing list