| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
This looks like a good addition feature-wise, but there is quite a bit of duplicated code in it. I think it would be better if we had /one/ implementation based on the iterator protocol, that just uses an additional size hint if len is implemented. |
Sorry, something went wrong.
Sure. Presumably sequence protocol => iterator protocol? |
Sorry, something went wrong.
|
It says so in the docs: https://docs.python.org/2/library/stdtypes.html#iterator-types as well as https://docs.python.org/3/library/stdtypes.html#iterator-types:
|
Sorry, something went wrong.
Ok, have redone - always uses iterator protocol now. |
Sorry, something went wrong.
|
This looks great, thanks :) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
Python 3 has much more liberal use of iterators, e.g. getting keys or values from a dictionary. This adds functionality to convert python object which support the iterator protocol to arrays in C#.
Does this close any currently open issues?
No
Any other comments?
N/A
Checklist
Check all those that are applicable and complete.