Re:Reasons Python Sucks
by d0mine on Tuesday December 18, 2018 @03:18PM
(#18710155)
Here are pictures that explain the difference between variables as named boxes and names in Python https://david.goodger.org/projects/pycon/2007/idiomatic/hand...
[ Parent
| on HN ]
Re:Reasons Python Sucks
by tom_mellior on Tuesday December 18, 2018 @03:52PM
(#18710427)
That's a nice explanation for BASIC programmers, but for anyone who has ever programmed in some other programming language than BASIC, it should not come as a surprise that named boxes can store pointer values. As they do in Python. They literally store C pointers of type (PyObject *).