[Import-SIG] PEP 420: Implicit Namespace Packages
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
> >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
> >are disliked by Guido van Rossum (not sure whether this reservation
> >to this case as well, or only to cases where the return type depends on
> >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...
More information about the Import-SIG