Silly import question (__file__ attribute)

Steven D'Aprano steve at
Sat Mar 11 02:59:40 CET 2006

On Thu, 09 Mar 2006 17:25:20 -0500, Jack Diederich wrote:

> It is a built-in module so it doesn't have a .so (dll) or .py file
> to mention.

Wouldn't it make sense for module.__file__ to be set to None rather than
completely missing in this case?


More information about the Python-list mailing list