Seeing Variables

Liste des GroupesRevenir à 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 Variables3Stefan Ram
12 Jun 25 `* Re: Seeing Variables2Stefan Ram
12 Jun 25  `- Re: Seeing Variables1Paul Rubin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal