Re:Pointers in Python
by ForHackernews on Monday June 17, 2019 @05:08AM
(#20201138)
Aren't all variables in Python already somewhat like a pointer? They're a reference to an object, not a memory address containing a value.
[ Parent
| on HN ]
Yes, but pointers are more basic, since Python's internal references participate in garbage collection.
If you would use pointers exclusively, then you'd have to write your own garbage collector. Also, accessing data would be more difficult, and you could not use Python's data types such as classes.