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

Not exactly sure, what you want, but maybe something like this?

class mystr(str):
    def GetEmailAddresses(self):
        return [str(self)]

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

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

Reply via email to