This is the log traceback I got:
File  line 65, in get
    content = self.get_data_reddit()
  line 86, in get_data_reddit
    result = self.url_open(a,1)
  File  line 99, in url_open
    url_open(self,request,count+1)
NameError: global name 'url_open' is not defined

The code itself looks like:

def get_data_reddit(self):
        a=urllib2.Request()
        a.add_header()
        result = self.url_open(a,1)  
where url_open is in the same class:
 def url_open(self, request,count):    

Why did my program fail to find url_open? and why did it think it was global?   
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Tlyzgl3RC4YJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to