René's URL Explorer Experiment


Title: Pointers in Python: What's the Point? – Real Python

Open Graph Title: Pointers in Python: What's the Point? – Real Python

Description: In this step-by-step tutorial, you'll get a clearer understanding of Python's object model and learn why pointers don't really exist in Python. You'll also cover ways to simulate pointers in Python without the memory-management nightmare.

Open Graph Description: In this step-by-step tutorial, you'll get a clearer understanding of Python's object model and learn why pointers don't really exist in Python. You'll also cover ways to simulate pointers in Python without the memory-management nightmare.

Mail addresses
?subject=Python article for you&body=Pointers in Python: What's the Point? on Real Python https://realpython.com/pointers-in-python/

Opengraph URL: https://realpython.com/pointers-in-python/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "Pointers in Python: What's the Point?",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/Pointers-in-Python_Watermarked.d8551f0cd1d2.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/pointers-in-python/",
    "lastReviewed": "2024-08-13",
    "author": {
      "@type": "Person",
      "name": "Logan Jones",
      "image": "https://realpython.com/cdn-cgi/image/width=300,height=300,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me-prof-square-smaller.f000e4b46788.png",
      "url": "https://realpython.com/team/ljones/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Aldren Santos",
        "image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
        "url": "https://realpython.com/team/asantos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Brad Solomon",
        "image": "https://realpython.com/cdn-cgi/image/width=1188,height=1188,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Screen_Shot_2021-09-28_at_3.13.21_PM.3310c56e90bd.jpg",
        "url": "https://realpython.com/team/bsolomon/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Joanna Jablonski",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/jjablonksi-avatar.e37c4f83308e.jpg",
        "url": "https://realpython.com/team/jjablonski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2019-05-29T14:00:00+00:00",
  "dateModified": "2024-08-13T10:33:58.109169+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Logan Jones",
    "image": "https://realpython.com/cdn-cgi/image/width=300,height=300,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me-prof-square-smaller.f000e4b46788.png",
    "url": "https://realpython.com/team/ljones/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "In this step-by-step tutorial, you'll get a clearer understanding of Python's object model and learn why pointers don't really exist in Python. You'll also cover ways to simulate pointers in Python without the memory-management nightmare."
}

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/Pointers-in-Python_Watermarked.d8551f0cd1d2.jpg
og:imagehttps://files.realpython.com/media/Pointers-in-Python_Watermarked.d8551f0cd1d2.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/pointers-in-python/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/pointers-in-python/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fpointers-in-python%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/pointers-in-python/#toc
Why Doesn’t Python Have Pointers?https://realpython.com/pointers-in-python/#why-doesnt-python-have-pointers
Objects in Pythonhttps://realpython.com/pointers-in-python/#objects-in-python
Immutable vs Mutable Objectshttps://realpython.com/pointers-in-python/#immutable-vs-mutable-objects
Understanding Variableshttps://realpython.com/pointers-in-python/#understanding-variables
Variables in Chttps://realpython.com/pointers-in-python/#variables-in-c
Names in Pythonhttps://realpython.com/pointers-in-python/#names-in-python
A Note on Intern Objects in Pythonhttps://realpython.com/pointers-in-python/#a-note-on-intern-objects-in-python
Simulating Pointers in Pythonhttps://realpython.com/pointers-in-python/#simulating-pointers-in-python
Using Mutable Types as Pointershttps://realpython.com/pointers-in-python/#using-mutable-types-as-pointers
Using Python Objectshttps://realpython.com/pointers-in-python/#using-python-objects
Real Pointers With ctypeshttps://realpython.com/pointers-in-python/#real-pointers-with-ctypes
Conclusionhttps://realpython.com/pointers-in-python/#conclusion
https://realpython.com/feedback/survey/article/pointers-in-python/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/pointers-in-python/disliked/?from=article-sidebar
Pointers and Objects in Pythonhttps://realpython.com/courses/pointers-python/
Logan Joneshttps://realpython.com/pointers-in-python/#author
https://realpython.com/pointers-in-python/#reader-comments
intermediatehttps://realpython.com/tutorials/intermediate/
pythonhttps://realpython.com/tutorials/python/
Why Doesn’t Python Have Pointers?https://realpython.com/pointers-in-python/#why-doesnt-python-have-pointers
Objects in Pythonhttps://realpython.com/pointers-in-python/#objects-in-python
Immutable vs Mutable Objectshttps://realpython.com/pointers-in-python/#immutable-vs-mutable-objects
Understanding Variableshttps://realpython.com/pointers-in-python/#understanding-variables
Variables in Chttps://realpython.com/pointers-in-python/#variables-in-c
Names in Pythonhttps://realpython.com/pointers-in-python/#names-in-python
A Note on Intern Objects in Pythonhttps://realpython.com/pointers-in-python/#a-note-on-intern-objects-in-python
Simulating Pointers in Pythonhttps://realpython.com/pointers-in-python/#simulating-pointers-in-python
Using Mutable Types as Pointershttps://realpython.com/pointers-in-python/#using-mutable-types-as-pointers
Using Python Objectshttps://realpython.com/pointers-in-python/#using-python-objects
Real Pointers With ctypeshttps://realpython.com/pointers-in-python/#real-pointers-with-ctypes
Conclusionhttps://realpython.com/pointers-in-python/#conclusion
Remove adshttps://realpython.com/account/join/
Pointers and Objects in Pythonhttps://realpython.com/courses/pointers-python/
Chttps://realpython.com/c-for-python-programmers/
C++https://realpython.com/python-vs-cpp/
variableshttps://realpython.com/python-variables/
overview on C Pointers.https://www.tutorialspoint.com/cprogramming/c_pointers.htm
CPythonhttps://realpython.com/cpython-source-code-guide/
Get a sample chapter from Python Tricks: The Bookhttps://realpython.com/bonus/python-tricks-sample-pdf/
https://realpython.com/pointers-in-python/#why-doesnt-python-have-pointers
Zen of Pythonhttps://realpython.com/zen-of-python/
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#objects-in-python
isinstance()https://realpython.com/what-does-isinstance-do-in-python/
reference counthttps://docs.python.org/3/library/sys.html#sys.getrefcount
Memory Management in Pythonhttps://realpython.com/python-memory-management/
CPythonhttps://realpython.com/products/cpython-internals-book/
https://realpython.com/pointers-in-python/#immutable-vs-mutable-objects
mutable or immutablehttps://realpython.com/python-mutable-vs-immutable-types/
immutablehttps://realpython.com/courses/immutability-python/
listhttps://realpython.com/python-list/
data model docs.https://docs.python.org/3/reference/datamodel.html#object.__iadd__
stringhttps://realpython.com/python-strings/
Python enlightenmenthttps://realpython.com/pycon-guide/#what-to-do-at-pycon
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#understanding-variables
https://realpython.com/pointers-in-python/#variables-in-c
https://files.realpython.com/media/c_memory1.334fe7c13e82.png
https://files.realpython.com/media/c_memory2.14d638daf718.png
https://files.realpython.com/media/c_memory3.5afe110faf4d.png
https://files.realpython.com/media/c_memory4.45a45dbbfaab.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#names-in-python
PyObjecthttps://github.com/python/cpython/blob/v3.7.3/Include/object.h#L101
sys.getrefcount()https://docs.python.org/3/library/sys.html#sys.getrefcount
https://files.realpython.com/media/py_memory1.2b6e5f8e5bc9.png
https://files.realpython.com/media/py_memory2.99bb432c3432.png
garbage collectorhttps://docs.python.org/3/faq/design.html?highlight=garbage%20collect#how-does-python-manage-memory
https://files.realpython.com/media/py_memory3_1.ea43471d3bf6.png
https://files.realpython.com/media/py_memory4.0a15e8415a15.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#a-note-on-intern-objects-in-python
peephole optimizationshttps://en.wikipedia.org/wiki/Peephole_optimization
namespacehttps://realpython.com/python-namespaces-scope/
Sourcehttps://docs.python.org/3/library/sys.html#sys.intern
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#simulating-pointers-in-python
https://realpython.com/pointers-in-python/#using-mutable-types-as-pointers
print outhttps://realpython.com/python-print/
dictionaryhttps://realpython.com/python-dicts/
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#using-python-objects
Python classhttps://realpython.com/python-classes/
@propertyhttps://docs.python.org/3/library/functions.html#property
Primer on Python Decoratorshttps://realpython.com/primer-on-python-decorators/
https://realpython.com/pointers-in-python/#real-pointers-with-ctypes
Extending Python With C Libraries and the “ctypes” Modulehttps://dbader.org/blog/python-ctypes-tutorial
Pass by Reference in Python: Background and Best Practiceshttps://realpython.com/python-pass-by-reference/
Remove adshttps://realpython.com/account/join/
https://realpython.com/pointers-in-python/#conclusion
https://realpython.com/feedback/survey/article/pointers-in-python/liked/?from=article-footer
https://realpython.com/feedback/survey/article/pointers-in-python/disliked/?from=article-footer
Pointers and Objects in Pythonhttps://realpython.com/courses/pointers-python/
https://realpython.com/team/ljones/
» More about Loganhttps://realpython.com/team/ljones/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/bsolomon/
Bradhttps://realpython.com/team/bsolomon/
https://realpython.com/team/jjablonski/
Joannahttps://realpython.com/team/jjablonski/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=pointers-in-python
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=pointers-in-python
https://realpython.com/feedback/survey/article/pointers-in-python/liked/?from=article-comments
https://realpython.com/feedback/survey/article/pointers-in-python/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Fpointers-in-python%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20Pointers%20in%20Python%3A%20What%27s%20the%20Point%3F&url=https%3A%2F%2Frealpython.com%2Fpointers-in-python%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20Pointers%20in%20Python%3A%20What%27s%20the%20Point%3F%20https%3A%2F%2Frealpython.com%2Fpointers-in-python%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Fpointers-in-python%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
intermediatehttps://realpython.com/tutorials/intermediate/
pythonhttps://realpython.com/tutorials/python/
Pointers and Objects in Pythonhttps://realpython.com/courses/pointers-python/
Memory Management in Pythonhttps://realpython.com/python-memory-management/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=pointers-in-python
Your Guide to the CPython Source Codehttps://realpython.com/cpython-source-code-guide/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=pointers-in-python
Namespaces in Pythonhttps://realpython.com/python-namespace/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=pointers-in-python
What Is the Python Global Interpreter Lock (GIL)?https://realpython.com/python-gil/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=pointers-in-python
Python Exceptions: An Introductionhttps://realpython.com/python-exceptions/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=pointers-in-python
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpointers-in-python%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpointers-in-python%2F
Sign-Inhttps://realpython.com/account/login/?next=/pointers-in-python/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.