[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
jimjjewett at gmail.com
Fri May 11 03:35:37 CEST 2007
On 5/10/07, Phillip J. Eby <pje at telecommunity.com> 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
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
More information about the Python-3000