[Python-ideas] strings as iterables - from str.startswith taking any iterator instead of just tuple

Joshua Landau joshua.landau.ws at gmail.com
Sun Jan 5 01:50:11 CET 2014


On Jan 5, 2014 12:08 AM, "Amber Yust" <amber.yust at gmail.com> wrote:
>
> __fromiter__, anyone?

I'm unconvinced that it should be a dunder method. Do you expect it to be
used like

    fromiter(str, characters)

?

However, +1 on the name, +0 on the idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140105/132e9231/attachment.html>


More information about the Python-ideas mailing list