[Import-SIG] PEP 420 issue: extend_path

Nick Coghlan ncoghlan at gmail.com
Fri May 11 02:09:41 CEST 2012


How is starting an accumulator and returning it unconditionally *more*
complicated than "if you don't find any portions return None".

"Why should I do that, what happens if I just return my empty container
instead?"

"Oh, that's the same as returning None."

It makes no sense. We *have* to handle the empty iterator case regardless.
Allowing None *as well* is just plain redundant.

Regards,
Nick.
--
Sent from my phone, thus the relative brevity :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/import-sig/attachments/20120511/9d27d966/attachment.html>


More information about the Import-SIG mailing list