[Python-Dev] Codecs lookup order

Martin v. Loewis martin@v.loewis.de
10 Sep 2002 00:26:55 +0200

pinard@iro.umontreal.ca (Fran=E7ois Pinard) writes:

> I'm not sure what should best be done.  The documentation might be
> modified to explain the limitation, so other users do not trip up on
> it.  `encoding.lookup()' might merely return None in case
> `getregentry' is not defined in the imported module, or else, it
> could make sure that it imports modules exclusively from within the
> `encodings' package.

This is what Python 2.3, and Python 2.2.2 will do.