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 ncoghlan
Recipients belopolsky, jleedev, ncoghlan, pitrou, rhettinger, torsten, vstinner
Date 2014-09-07.05:30:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I didn't want to add a second argument to turn off the new behaviour, so I changed it such that passing a value < 0 for "nested" turns off the new feature entirely. Levels >= 0 enable it, defining which level to start with. The default level is "0" so there's no implied prefix, and nested code objects are displayed by default. This picks up at least comprehensions, lambda expressions and nested functions. I haven't checked how it handles nested classes yet.

I used this feature to get the old tests passing again by turning off the recursion feature. New tests for the new behaviour are still needed.

I also tweaked the header to show the *name* of the code object. The full repr is to noisy, but the generic message was hard to read when there were multiple nested code objects.
Date User Action Args
2014-09-07 05:30:36ncoghlansetrecipients: + ncoghlan, rhettinger, belopolsky, pitrou, vstinner, torsten, jleedev
2014-09-07 05:30:36ncoghlansetmessageid: <>
2014-09-07 05:30:36ncoghlanlinkissue11822 messages
2014-09-07 05:30:36ncoghlancreate