[Python-Dev] Re: PEP 618: Add Optional Length-Checking To zip

2020年5月10日 14:50:34 -0700

On 2020年5月10日 16:04:02 -0000
"Brandt Bucher" <[email protected]> wrote:
> I have pushed a second draft of PEP 618:
> 
> https://www.python.org/dev/peps/pep-0618
> 
> Please let me know what you think – I'd love to hear any new feedback that 
> hasn't yet been addressed in the PEP!
"""
>>> x = iter([iter([1, 2, 3]), iter(["one" "two" "three"])])
>>> xt = list(zip(*x))
"""
I'm not sure what the `iter`s bring here. The snippet would be more
readable without, IMHO.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/R6F2URBG5ZQCDMVJATCXYLU7U2Y2MWZ3/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to