Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: include a bit on memory management #9

Open
madphysicist opened this issue Apr 26, 2018 · 0 comments
Open

Suggestion: include a bit on memory management #9

madphysicist opened this issue Apr 26, 2018 · 0 comments

Comments

@madphysicist
Copy link
Contributor

Some questions that have been bothering me about the functions described in https://docs.python.org/3/c-api/memory.html:

  • What are the differences between PyMem_RawMalloc, PyMem_Malloc, PyObject_Malloc, etc.?
  • Do these functions automatically raise a MemoryError if they return None?

While the answers are out there (I ended up reading the source code and some Stack Overflow posts), they are non-trivial to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant