[Tutor] Problem with file()

Alan Gauld alan.gauld at blueyonder.co.uk
Sat Aug 21 21:12:48 CEST 2004


> > You don't seem to have included the code containing the problem.
The
> > traceback shows the error occurring at line 104 of __init__.py and
you
> seem
> > to have included ClientsManager.py.
>
> The code is from __init__.py. The module is called ClientsManager.
Right now
> there is only a __init__.py file, containing all classes and
functions.

I'm confused. How can the module name be different to the file name?

And naming a file __init__.py is probably a bad idea since anything
with two underscores usually signifies something from the innards
of Python itself.

Or have you stumbled across some deep black magic of python that
I haven't seen before?!

Alan G



More information about the Tutor mailing list