[Import-SIG] PEP 420: Implicit Namespace Packages

Brett Cannon brett at python.org
Wed May 2 21:40:41 CEST 2012


On Wed, May 2, 2012 at 2:50 PM, Barry Warsaw <barry at python.org> wrote:

> On May 02, 2012, at 08:32 PM, Martin v. Löwis wrote:
>
> >Both, actually. I had expected that new API (i.e. a new method of some
> kind)
> >would be necessary, so it has elegance that this is not required.  OTOH,
> >explicit type checking is despised in the OO world, and varying result
> types
> >are disliked by Guido van Rossum (not sure whether this reservation
> applies
> >to this case as well, or only to cases where the return type depends on
> the
> >parameter types).
>
> My understanding (and I'm sure Guido will correct me if I'm wrong) is that
> it's the latter: return type should not depend on function argument values.


This is how I interpreted Guido's preference (e.g. return bytes or str
based on whether an argument(s) is bytes or str).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/import-sig/attachments/20120502/b576d334/attachment.html>


More information about the Import-SIG mailing list