Re: Persisting functions typed into the shell

2022-11-12 Thread Chris Angelico
On Sun, 13 Nov 2022 at 05:48, Stefan Ram wrote: > So much for the topic of "In Python, /everything/ is an > object"! There seem to be first and second-class objects: > Shelveable and non-shelveable objects. > That's a bit unfair. Everything IS an object, but not all objects can be treated

Re: Persisting functions typed into the shell

2022-11-12 Thread Weatherby,Gerard
Sounds like Jupyter Notebooks: https://jupyter.org From: Python-list on behalf of Stefan Ram Date: Saturday, November 12, 2022 at 1:48 PM To: python-list@python.org Subject: Persisting functions typed into the shell *** Attention: This is an external email. Use caution responding, opening

Re: Persisting functions typed into the shell

2022-11-12 Thread dn
On 13/11/2022 05.05, Stefan Ram wrote: Wayne Harris writes: Wow. Could the dis module help at all? Thank you for this idea! I think this should work, but only under CPython and not necessarily across different Python versions. Still, I might use dis. Was constructing a two-part

Re: Persisting functions typed into the shell

2022-11-12 Thread Wayne Harris via Python-list
On 12/11/2022 10:01, Stefan Ram wrote: > Many readers here know interactive Python sessions with > prompts like ">>>". But a "session" could be something else. > One could imagine that when starting a new session, one > still sees all the variables and constants defined in > preceding