Are the critiques in "All the things I hate about Python" valid?
Marko Rauhamaa
marko at pacujo.net
Mon Feb 19 11:20:03 EST 2018
Paul Moore <p.f.moore at 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
More information about the Python-list
mailing list