The code version of python -i <filename>
Dennis Lee Bieber
wlfraed at ix.netcom.com
Wed Sep 15 14:32:48 EDT 2021
On Wed, 15 Sep 2021 16:08:32 +0200, Peter Otten <__peter__ at web.de>
declaimed the following:
>
>I tried
>
>import code
>
>x = 42
>code.interact(local=globals())
>
>but didn't bother to read the documentation at
>
>https://docs.python.org/3/library/code.html
>
>and thus do not know what the limitations might be.
Well, offhand, I'd say you need to provide a function to be used for
raw_input (which will have to provide prompts, etc.).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed at ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
More information about the Python-list
mailing list