How to Teach Python "Variables"

greg greg at cosc.canterbury.ac.nz
Mon Nov 26 03:37:19 EST 2007


none wrote:
>     IIRC, I once saw an explanation how Python doesn't have "variables" 
> in the sense that, say, C does, and instead has bindings from names to 
> objects.

If you're talking to C programmers, just tell them that
Python variables always contain pointers. That should
give them the right mental model to build on.

--
Greg



More information about the Python-list mailing list