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

pybind: rados cleanup #7692

Merged
merged 1 commit into from Feb 19, 2016
Merged

pybind: rados cleanup #7692

merged 1 commit into from Feb 19, 2016

Conversation

sileht
Copy link
Contributor

@sileht sileht commented Feb 18, 2016

This change uses:

  • a pystring to store ioctx state like other state attributes and like
    previous binding
  • use dealloc instead of del to ensure Object are freed correctly

This change uses:
* a pystring to store ioctx state like other state attributes and like
  previous binding
* use __dealloc__ instead of __del__ to ensure Object are freed correctly

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
@jdurgin
Copy link
Member

jdurgin commented Feb 19, 2016

Good catch, this makes me think we should get rid of next() as well: http://docs.cython.org/src/userguide/special_methods.html#the-next-method

jdurgin added a commit that referenced this pull request Feb 19, 2016
pybind/rados: use __dealloc__ since __del__ is ignored by cython

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 398c493 into ceph:master Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants