Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197506
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Seeing Variables |
| Date | 2025-06-11 10:30 +0000 |
| Organization | Stefan Ram |
| Message-ID | <names-20250611113016@ram.dialup.fu-berlin.de> (permalink) |
Did you know that after your program has terminated in IDLE,
you still can see the variables in the shell?
For example:
IDLE editor
a = 1 (user input)
[F5] - run (user input)
IDLE shell
a (user input)
1 (system output)
But how to achieve the same for local variables? E.g.,
IDLE editor
def f(): (user input)
a = 1 (user input)
IDLE shell
a (user input)
NameError: name 'a' is not defined (system output)
Back to comp.lang.python | Previous | Next — Next in thread | Find similar
Seeing Variables ram@zedat.fu-berlin.de (Stefan Ram) - 2025-06-11 10:30 +0000
Re: Seeing Variables ram@zedat.fu-berlin.de (Stefan Ram) - 2025-06-12 08:59 +0000
Re: Seeing Variables Paul Rubin <no.email@nospam.invalid> - 2025-06-12 02:35 -0700
csiph-web