This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients CCLDArjun, eamanu, ncoghlan, serhiy.storchaka, steven.daprano, terry.reedy, yselivanov
Date 2022-03-18.15:17:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647616639.48.0.59747605317.issue44405@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-18 15:17:19serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, ncoghlan, steven.daprano, yselivanov, eamanu, CCLDArjun
2022-03-18 15:17:19serhiy.storchakasetmessageid: <1647616639.48.0.59747605317.issue44405@roundup.psfhosted.org>
2022-03-18 15:17:19serhiy.storchakalinkissue44405 messages
2022-03-18 15:17:19serhiy.storchakacreate