[Python-3000] New Import Behavior

Barry Warsaw barry at python.org
Mon Jan 15 18:24:01 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jan 15, 2007, at 12:17 PM, Armin Ronacher wrote:

> `thirdparty` is in the pythonpath, the folder where in `yourapp` is  
> in too.
> If now someone tries to import `yourapp.plugins.plugin3` this would  
> not work
> because python stops the import process somewhere in `yourapp/ 
> plugins/` not
> trying the `thirdparty` folder at all. For plugin systems this is  
> very bad. Java
> solves that better.

Use __path__

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBRau4t3EjvBPtnXfVAQIlYgP/faKFPIql7ylZQ6bIr9WMGxVq9OVgVGRF
T7baC6Op8NrjiWzqNH6DDMu0CitQ1Clx3j9IHoT0UQeLt8xxHP2+lzPeBb1ZrqHP
XkFRHhzFMKD7sSPF3shNRcubG0U9beUSQzH8X/4osrpLqVsGV5UpwuKLtKVQhk2F
p4rszO/g6ro=
=U/L+
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list