[issue9147] dis.show_code() variant that accepts source strings (and returns rather than prints)

Nick Coghlan report at bugs.python.org
Sat Jul 3 09:42:42 CEST 2010


New submission from Nick Coghlan <ncoghlan at gmail.com>:

Add a new API in the dis module that:

1. Works like show_code() but returns a string rather than printing to stdout
2. Accepts source strings directly, similar to the dis.dis() changes for 3.2

Tentative name: get_code_info()

Inspired by Yanov Aknin's ssc() utility and the issue 6507 updates to dis.dis()

----------
assignee: ncoghlan
components: Library (Lib)
messages: 109161
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: dis.show_code() variant that accepts source strings (and returns rather than prints)
type: feature request
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9147>
_______________________________________


More information about the Python-bugs-list mailing list