Class Not Auto-Init On Import
Robert Rawlins - Think Blue
robert.rawlins at thinkbluemedia.co.uk
Sat Apr 21 04:46:07 EDT 2007
Hello Guys,
>From my understanding of what I've read, the 'import' is meant to auto Init
my class ready for me to access its methods, but it doesn't appear too, I'm
having to init them myself before I can access them, like this.
import LocationService
Location = LocationService.LocationService()
LocationService.setIP('192.168.1.1')
Why is this the case? Should i not just be able to access the setIP() method
by doing LocationService.setIP('192.168.1.1') Without having to create my
own inited reference?
Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070421/4aa51d6d/attachment.html>
More information about the Python-list
mailing list