Hello,

I am working on some stuff, and I would like to be able to write a module which can be imported, and after it's been imported I would like to be able to access it's functions as methods.

In other words, if I do the import of module ISPdetector, I want to then be able to make calls like the following -

   ipAddress = "123.123.123.123"
   emails = ipAddress.GetEmailAddresses()

where GetEmailAddresses() is defined in module ISPdetector. Do I just wite that function in ISPdetector.py as a normally deffed function, or does it have to be part of a class within the module?

Thanks for any help you can be.

Later, Ray Parrish

--
Linux dpkg Software Report script set..
http://www.rayslinks.com/LinuxdpkgSoftwareReport.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to