Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Neither of tokenize, ast or symtable modules support passing the source string 
as argument. If add this feature in the dis module, we will need to add it in 
all other modules with similar CLI. I do not think it is practical. You always 
can pass the source string via stdin. And you do not even need to pass 
/dev/stdin as argument, stdin is the default.

I usually use it with rlwrap. It allows to use some editing and history.

    rlwrap ./python -m dis

I propose to close this issue and open a new issue for documenting the CLI of 
the dis module.

----------

_______________________________________
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

Reply via email to