Python Forum
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python pointers?
#2
Not many high-level languages have pointers due to security reasons. But languages themselves do implement the datatypes and do memory management using pointers.

In Python, the functionality of linked list is achievable by other native data types like lists. There is collections.deque that is implemented as doubly linked list.

However, if you want to implement a linked list yourself you can use classes to do so. Example.
Reply


Messages In This Thread
Python pointers? - by Nwb - Jan-12-2019, 04:29 AM
RE: Python pointers? - by hbknjr - Jan-12-2019, 05:59 AM
RE: Python pointers? - by Gribouillis - Jan-12-2019, 01:44 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020