New submission from Arjun <ccldar...@icloud.com>:
python dis module should have a program passed in as string. Currently, you can do this: $ echo "x = 6" | python -m dis /dev/stdin 1 0 LOAD_CONST 0 (6) 2 STORE_NAME 0 (x) 4 LOAD_CONST 1 (None) 6 RETURN_VALUE would be convenient like this: $ ./python.exe -m dis -c "x=6" 1 0 LOAD_CONST 0 (6) 2 STORE_NAME 0 (x) 4 LOAD_CONST 1 (None) 6 RETURN_VALUE these changes seem to be working. ---------- components: Library (Lib) files: dis.patch keywords: patch messages: 395720 nosy: CCLDArjun priority: normal severity: normal status: open title: add program passed as string to dis module. type: enhancement Added file: https://bugs.python.org/file50107/dis.patch _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44405> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com