0

How to access memory locations in python?

An access a memory location using heap memory

19th Sep 2019, 7:55 PM
Shivangi Soti
Shivangi Soti - avatar
2 Respuestas
+ 3
I explored cython module for a while and I found 2 methods: cython.address cython.pointer I think those might have something to do with the wanted pointer functionality. I will give more information when I know how it works.
19th Sep 2019, 8:23 PM
Seb TheS
Seb TheS - avatar
+ 2
I don't think Python is a language that allows you to use low level memory. Instead it takes care of the memory management for the user (that's one reason why Python is called a high-level language). That's also a reason why Python is incredibly slow compared to lower-level languages like C, C++ and Rust. I hope that's what you wanted to know. Btw. here's a related Stackoverflow post: https://stackoverflow.com/questions/14546178/does-python-have-a-stack-heap-and-how-is-memory-managed#14546231
19th Sep 2019, 8:03 PM
Aaron Eberhardt
Aaron Eberhardt - avatar