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 matiasb
Recipients benjamin.peterson, matiasb
Date 2011-03-15.19:22:55
SpamBayes Score 1.5087946e-05
Marked as misclassified No
Message-id <1300216976.64.0.440960210174.issue11559@psf.upfronthosting.co.za>
In-reply-to
Content
Updated patch following Benjamin advice (1. and 2.).

Re 3. Why is dist(None) a RuntimeError and anything else invalid TypeError?

When the dis argument is None, the last traceback is disassembled; if something different to None and that does not have code (ie. no class, method, function or bytecode) is passed, the TypeError exception is raised [0].

[0] http://hg.python.org/cpython/file/1c0cded97280/Lib/dis.py#l28
History
Date User Action Args
2011-03-15 19:22:56matiasbsetrecipients: + matiasb, benjamin.peterson
2011-03-15 19:22:56matiasbsetmessageid: <1300216976.64.0.440960210174.issue11559@psf.upfronthosting.co.za>
2011-03-15 19:22:55matiasblinkissue11559 messages
2011-03-15 19:22:55matiasbcreate