[Tutor] Class Extend Help

Omer Jaggojaggo+Py at gmail.com
Sat Dec 20 17:23:29 CET 2008


Hey.

I'm trying to do something I think is basic and am failing.

The goal is:
[mimicking the google urlopen syntax]

try:
    from google.appengine.api.urlfetch import fetch
except:
    from urllib import urlopen as fetch


How do I add this "fetch" the property of content?

I basically want fetch(url.com).content to replace urlopen(url.com).read()

Mind, content is not a method.

Thoughts?

Thx. Omer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081220/084b6dab/attachment.htm>


More information about the Tutor mailing list