Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up__del__ beside the __dealloc__ #3612
Open
Comments
|
Right, PEP 442 allows this. Cython currently implements it the other way round and calls How to do it: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python3 uses del for uninitialization of classes, it would be good to have this as well, it can help to uninitialize python variables, while in dealloc we can uninitialize c variables.
this is useful for example when we are using a module that uses ctypes, or is dependent on some python initialization.