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

Iterate PyObject without conversion #593

Closed
jw3126 opened this issue Oct 16, 2018 · 2 comments
Closed

Iterate PyObject without conversion #593

jw3126 opened this issue Oct 16, 2018 · 2 comments

Comments

@jw3126
Copy link
Contributor

jw3126 commented Oct 16, 2018

I am in a situation, where I want to iterate over a PyObject, without converting the items into julia objects.
My quick and dirty solution was to copy the iterate code and remove the conversion here:

return (convert(PyAny, s[1]), (nxt, s[2]))

Is there a better way? Would you like a PR that adds a lower level function without conversion (say pyiterate) and makes iterate a stub that just adds convert on top of this function?

@jw3126 jw3126 mentioned this issue Oct 16, 2018
@tkf
Copy link
Member

tkf commented Oct 16, 2018

a dup of #153
see also #507

@tkf
Copy link
Member

tkf commented Nov 4, 2018

closed by #594 (thanks!)

@tkf tkf closed this as completed Nov 4, 2018
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

2 participants