[issue11983] Inconsistent hash and comparison for code objects
Eugene Toder
report at bugs.python.org
Sat Jan 19 19:35:27 CET 2013
Eugene Toder added the comment:
If you add co_firstlineno into code_hash you can say something like
/* The rest isn't used in hash and comparisons, except
co_name and co_firstlineno, which are preserved for
tracebacks and debuggers. */
(Otherwise you'd need to explain why co_firstlineno is not in hash.)
BTW, since co_firstlineno is used including co_name is redundant -- there's no way to have 2 named code objects on the same line, AFAIK.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11983>
_______________________________________
More information about the Python-bugs-list
mailing list