Paul Moore <p.f.mo...@gmail.com>:

> I'm curious - How would you explain Python's "variables" to someone
> who knows how C variables work, in a way that ensures they don't carry
> across any unfortunate misconceptions based on how C works?

Just say that

 1. Every Python variable is of the type "Object *".

 2. Every Python expression evaluates to a pointer (Object *).

 3. Python's "." is equivalent to C's "->".

That'll get the main point across pretty fast.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to