[Python-Dev] zipimport & import hooks

Fredrik Lundh fredrik@pythonware.com
Fri, 6 Dec 2002 14:53:31 +0100


Kevin wrote:

>   2) They don't care if Python stores objects, strings, or bananas in
>      sys.path, so long as=20
>=20
>        sys.path=3Dmap(str,sys.path)=20
>=20
>      results in a human-readable path and does not change how imports =
occur.

quick question: would the following variation of feeling #2 be =
acceptable:

>   2) They don't care if Python stores objects, strings, or bananas in
>      sys.path, so long as=20
>=20
>        sys.path=3Dmap(str,sys.path)=20

+
+      on a sys.path set up by the Python interpreter itself

>      results in a human-readable path and does not change how imports =
occur.

(note that today's Python already allows you to violate the above rule, =
by
adding non-string objects with cunningly constructed __str__ methods...)

</F>