On 5/10/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote:

> Using the "Importing" package from the Cheeseshop:
...
> from peak.util.imports import whenImported
> whenImported('pydoc', register_pydoc)

> I certainly wouldn't object to making 'whenImported' and its friends
> a part of the stdlib.

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

But please don't go overboard with the "and its friends" part.  That
15K zip file boiled down to a 370 line python module.  Over 200 of
those lines were to support things like module inheritance or
returning a sequence with strings replaced by the result of running
import/getattr on them.  Those uses are probably too obscure for the
stdlib.

-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

Reply via email to