+ 1
Should pointers be in python ?
programming
2 Respuestas
0
Pointers are low-level objects, in Python this is done internally by the interpreter. Very often Python works with references instead of real copy depending how you define your variables. Also by default a function takes variables by reference. It's just a way of thinking, in some senses each variable is a pointer...
0
Pointers are really designed for compiled programs. The keyword 'global' is a way that python makes pointers to write access to variables for use in methods. All variables are already readable by child methods.