homepage

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 belopolsky
Recipients belopolsky, sdeibel
Date 2008年03月03日.20:55:00
SpamBayes Score 0.0017906554
Marked as misclassified No
Message-id <1204577702.25.0.313807542836.issue2198@psf.upfronthosting.co.za>
In-reply-to
Content
I would say filename/lineno are excluded from hash on purpose because
they are ignored in comparisons:
>>> compile("0", "a", "eval") == compile("0", "b", "eval")
True
Include/code.h has the following comment:
 /* The rest doesn't count for hash/cmp */ 
 PyObject *co_filename; /* string (where it was loaded from) */ 
 PyObject *co_name; /* string (name, for reference) */ 
 int co_firstlineno; /* first source line number */ 
..
Can you describe your specific problem in more detail? Why does your
debugger need to hash/compare code objects?
History
Date User Action Args
2008年03月03日 20:55:02belopolskysetspambayes_score: 0.00179066 -> 0.0017906554
recipients: + belopolsky, sdeibel
2008年03月03日 20:55:02belopolskysetspambayes_score: 0.00179066 -> 0.00179066
messageid: <1204577702.25.0.313807542836.issue2198@psf.upfronthosting.co.za>
2008年03月03日 20:55:01belopolskylinkissue2198 messages
2008年03月03日 20:55:01belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /