a heisenbug

Peter Otten __peter__ at web.de
Tue Aug 29 02:49:34 EDT 2017


Steve D'Aprano wrote:

> On Tue, 29 Aug 2017 07:09 am, Peter Otten wrote:
> 
>> The lesson is that if you use a (sub)module you should never rely on an
>> implicit import.
> 
> ... unless the module is documented as automatically importing the
> submodule. An example is os.path.

os.path is the only exception that I know of, and it's used so often that it 
may teach you bad habits.




More information about the Python-list mailing list