module attributes and docstrings
Marko Rauhamaa
marko at pacujo.net
Fri Mar 27 03:49:41 EDT 2015
Steven D'Aprano <steve+comp.lang.python at pearwood.info>:
> Some people prefer to say "Python has no variables, it has name
> bindings". I think that it's better to say that Python's variables are
> not *like* C or Pascal variables, rather than invent a distinction
> between name bindings and variables. Name bindings are a type of
> variable.
I guess the thinking goes like this:
In Python, everything is a first-class object.
In Python, variables are not first-class objects.
Ergo: In Python, there are no variables.
Marko
More information about the Python-list
mailing list