[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

Jim Jewett jimjjewett at gmail.com
Fri May 11 06:05:55 CEST 2007

On 5/10/07, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 09:35 PM 5/10/2007 -0400, Jim Jewett wrote:

> >Adding whenImported would be useful, even outside of ABCs and
> >generic functions.

> >But please don't go overboard with the "and its friends" part.

> If you mean importObject, importSequence, and importSuite, I agree
> with you.

> Really, by "and friends" I mean importString and lazyModule, and I'm
> fine with relocating and renaming them, as well as stripping out the
> relative path bit.

So we're mostly in agreement, but I had also wanted to leave out importString.

I know it can seem simpler to treat everything as an object, and not
worry about where the type switches from package to module to instance
to attribute.  I see it used in Twisted.

But I'm not sure it is *really* simpler for someone who isn't familiar
with your codebase, and I don't see why it is needed for whenImported.


More information about the Python-3000 mailing list