[Tutor] file attribute of module

Kent Johnson kent37 at tds.net
Fri Jun 9 17:02:44 CEST 2006


Kermit Rose wrote:
>>>> factor30.__file__
> 'c:\\math\\factoring\\factor30.py'
>  
> Ok.   Now I understand it.
>  
> The module is named factor30.
>  
> The file is named factor30.py
>  
> I presume that if I created another library in the same directory
> in a file named factor31.py
> that it would create a module named factor31.   ???

Yes. Try it and see!

Kent



More information about the Tutor mailing list