Re: PEP 420 issue: extend_path
Nick Coghlan <[email protected]>
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <CADiSq7ciq2UMSsRTTCPyNaX1P5zFsPEnf9aSggXsWyyv+CmtEA@mail.gmail.com> |
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 :) _______________________________________________ Import-SIG mailing list [email protected] http://mail.python.org/mailman/listinfo/import-sig