Restricting import file lookup for pyd, dll, ...

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Oct 19 23:51:11 CEST 2006


At Thursday 19/10/2006 18:38, Bernard Lebel wrote:

>By default, when I import a module in Python, Python looks for pyd,
>dll, py, then pyw and finally pyc file.
>
>In our company we do not use pyd and dll for Python stuff. Is there
>any chance to disable Python from looking at these? Perhaps a flag we
>can change in Python? Or would it be doable by recompiling the
>sources?

You can't; part of the standard library are .pyd/.dll files.
Those existence checks should be fairly fast - why are you worried about them?


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list