Seeing Variables
Liste des Groupes
Revenir à cl python
Sujet :
Seeing Variables
De :
ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes :
comp.lang.python
Date :
11. Jun 2025, 11:30:42
Autres entêtes
Organisation :
Stefan Ram
Message-ID :
<names-20250611113016@ram.dialup.fu-berlin.de>
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)
Date
Sujet
#
Auteur
11 Jun 25
Seeing Variables
3
Stefan Ram
12 Jun 25
Re: Seeing Variables
2
Stefan Ram
12 Jun 25
Re: Seeing Variables
1
Paul Rubin
Haut de la page
Les messages affichés proviennent d'
usenet
.
NewsPortal