Objects in Python

Antoon Pardon antoon.pardon at rece.vub.ac.be
Fri Aug 24 09:38:48 CEST 2012

On 23-08-12 01:58, Ben Finney wrote:
> You haven't discovered anything about types; what you have discovered is
> that Python name bindings are not variables.
> In fact, Python doesn't have variables – not as C or Java programmers
> would understand the term. What it has instead are references to objects
> (with names as one kind of reference).
> The documentation unfortunately calls these references “variables” in
> various places, which IMO compounds the confusion in newcomers
> experienced with other languages. It's best, I think, to reject the idea
> that Python has variables, and think in terms of references instead.
Why should we reject the idea that python has variables? Python
variables are a lot like scheme or smalltalk variables and I never
heard anyone having a problem considering these languages
having variables.

More information about the Python-list mailing list