You now know how Python deals with objects and pointers! You learned about the differences between names and variables, which is important for understanding how Python handles variables. You also saw that you can simulate pointers in Python without sacrificing the memory safety that Python provides.
You can simulate pointers in Python by:
- Using mutable objects as low-overhead pointers
- Creating custom Python objects for ease of use
- Unlocking real pointers with the
ctypesmodule
mahlenius on July 12, 2020
Great presentation. Very helpful. Its great that he calls out where Python is strong for some problems and weak for others.
thank you