Re: [Tutor] file attribute of module

2006-06-09 Thread Kent Johnson
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 wou

[Tutor] file attribute of module

2006-06-09 Thread Kermit Rose
Message: 2 Date: Thu, 08 Jun 2006 09:28:27 -0400 From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] module versus file Most modules do have corresponding files. The exceptions are the ones built-in to Python. In fact modules have a __file__ attribute that tells you where it came from;