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

Call PyObject_GC_Track() for views and iterators after creation #320

Closed
asvetlov opened this issue Jan 5, 2019 · 2 comments
Closed

Call PyObject_GC_Track() for views and iterators after creation #320

asvetlov opened this issue Jan 5, 2019 · 2 comments
Assignees
Labels

Comments

@asvetlov
Copy link
Member

asvetlov commented Jan 5, 2019

Calls like PyObject_GC_New doesn't track returned objects, an explicit PyObject_GC_Track call is needed IIRC

/cc @iemelyanov

@aio-libs-bot
Copy link

GitMate.io thinks possibly related issues are #241 (Rewrite iterators with C), and #310 (Implement length_hint() for iterators).

@asvetlov
Copy link
Member Author

asvetlov commented Jan 5, 2019

The next step could be conditional tracking.
Python dict checks its content and don't track itself if all internal keys/values are not tracked.

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

No branches or pull requests

4 participants