On 5/10/07, Phillip J. Eby <[EMAIL PROTECTED]> 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. -jJ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com