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 Jeremy.Hylton, brett.cannon, eltoder, eric.araujo, ncoghlan, pitrou, rhettinger
Date 2013-01-19.18:35:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358620527.49.0.116527035927.issue11983@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-01-19 18:35:28eltodersetrecipients: + eltoder, brett.cannon, rhettinger, ncoghlan, pitrou, eric.araujo, Jeremy.Hylton
2013-01-19 18:35:27eltodersetmessageid: <1358620527.49.0.116527035927.issue11983@psf.upfronthosting.co.za>
2013-01-19 18:35:27eltoderlinkissue11983 messages
2013-01-19 18:35:23eltodercreate