I should have re-read that last reply before hitting send. Apologies
for the poor sentence construction!

Something I forgot to highlight before which might be related to your
initial question.

If you have a file called sound.py which contained a class called
WavFile, if you imported just sound like this:

        import sound

Then your class constructor would be called like this:

        wavFile = sound.WavFile()


Importing the module doesn't import the class, for that you'd do

        from sound import WavFile

        wavFile = WavFile()
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to