Should pointers be in python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Should pointers be in python ?

programming

25th Jan 2017, 8:45 AM
Shivam Vatshayan
Shivam Vatshayan - avatar
2 Answers
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...
26th Jan 2017, 2:09 AM
Adrien
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.
26th Jan 2017, 2:10 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar