Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Pointers and Objects in Python (Summary)

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 ctypes module


Sample Code (.zip)

5.2 KB


Course Slides (.pdf)

2.5 MB

DFreyer on July 8, 2020

Very good Presentation. I learned a lot.

Santosh on July 8, 2020

Great job! Loved the flow and presentation.

felixthec on July 8, 2020

:Applause: A very good and informative presentation.

Jordan Rowland on July 11, 2020

This was an awesome lesson! Very clear and concise. Bravo!

Hilman on July 11, 2020

Good presentation. A good refresh for me on C pointer. And this is my first time learning working with C type in python!

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

Alex on July 15, 2020

awesome presentation!

andersstenborgmartin on July 15, 2020

Great course, well presented!

carl on July 15, 2020

Nice presentation. Would love to see a more advanced course on using the ctypes module to call C functions for all sorts of argument types and return types.

srihariraju on Aug. 12, 2020

Good presentation

Ghani on Oct. 18, 2020

Very informative and clear; thank you so much!

Become a Member to join the conversation.