Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to