Values and objects
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Fri May 9 21:01:49 EDT 2014
On Sat, 10 May 2014 01:34:58 +0300, Marko Rauhamaa wrote:
> Right, Python's variables aren't like variables in C. Rather, Python's
> variables are like CPU registers. They cannot hold typed or structured
> objects
Surely you cannot mean that? It is *trivially simple* to disprove that
statement:
py> x = [1, 2, 3] # A structured object
py> type(x) # that has a type
<class 'list'>
> and you can't pass references to them.
That at least you have got right.
--
Steven D'Aprano
http://import-that.dreamwidth.org/
More information about the Python-list
mailing list