Message90675
As per Georg's suggestion, a better approach would look like:
from dis import dis
def dis_str(source):
try:
c = compile(source, '', 'eval')
except SyntaxError:
c = compile(source, '', 'exec')
return dis(c) |
|
Date |
User |
Action |
Args |
2009-07-18 13:48:55 | ncoghlan | set | recipients:
+ ncoghlan, georg.brandl, terry.reedy |
2009-07-18 13:48:55 | ncoghlan | set | messageid: <1247924935.25.0.665989584376.issue6507@psf.upfronthosting.co.za> |
2009-07-18 13:48:53 | ncoghlan | link | issue6507 messages |
2009-07-18 13:48:53 | ncoghlan | create | |
|