class implementation

Ned Batchelder ned at nedbatchelder.com
Mon Sep 30 17:28:30 EDT 2013


On 9/30/13 3:34 PM, Dave Angel wrote:
> Python doesn't actually have variables, but the things it documents as
> variables are local names within a method.  Those are not visible
> outside of the method, regardless of whether you're in a class or a
> subclass.

Why does this meme persist!?  Of course Python has variables, they just 
don't work like C variables do.  If you'd like to know the details: 
http://nedbatchelder.com/text/names.html

--Ned.



More information about the Python-list mailing list