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, rhettinger
Date 2011-04-11.14:42:03
SpamBayes Score 0.003147032
Marked as misclassified No
Message-id <1302532924.71.0.981181549516.issue11822@psf.upfronthosting.co.za>
In-reply-to
Content
Would you like to display lambdas as well?


>>> dis('lambda x: x**2')
  1           0 LOAD_CONST               0 (<code object <lambda> at 0x1005c9ad0, file "<dis>", line 1>) 
              3 MAKE_FUNCTION            0 
              6 RETURN_VALUE         

<code object <lambda> at 0x1005cb140, file "<dis>", line 1>:
  1           0 LOAD_FAST                0 (x) 
              3 LOAD_CONST               1 (2) 
              6 BINARY_POWER         
              7 RETURN_VALUE         


I like the idea, but would rather see code objects expanded in-line, possibly indented rather than at the end.
History
Date User Action Args
2011-04-11 14:42:04belopolskysetrecipients: + belopolsky, rhettinger
2011-04-11 14:42:04belopolskysetmessageid: <1302532924.71.0.981181549516.issue11822@psf.upfronthosting.co.za>
2011-04-11 14:42:04belopolskylinkissue11822 messages
2011-04-11 14:42:03belopolskycreate