Use of a variable in parent loop

2QdxY4RzWzUUiLuE at potatochowder.com 2QdxY4RzWzUUiLuE at potatochowder.com
Sun Sep 27 08:17:10 EDT 2020


On 2020-09-27 at 15:18:44 +0800,
Stephane Tougard via Python-list <python-list at python.org> wrote:

> In many non declarative language, if I do print($var), it just prints
> and undefined value with returning an error.

If I want "many non declarative language[s]," I know where to find them,
and I won't expect them to honor Python's semantics.  In Python, a name
doesn't have a value unless and until you bind it to one.

There's a lot more to learning a new language than the syntax.


More information about the Python-list mailing list