Re: Possible error in the documentation?

39 views
Skip to first unread message

Anand Mistry

unread,
Aug 26, 2012, 7:30:33 PM8/26/12
to google-a...@googlegroups.com
Yes. Please file a bug.

On Monday, 27 August 2012 04:05:52 UTC+10, Attila-Mihaly Balazs wrote:
I believe that the following example is incorrect in the documentation [1]:

app = ndb.toplevel(webapp.WSGIApplication)([('/', MainPage)])

It sees to me that the correct way to write this would be:

app = ndb.toplevel(webapp.WSGIApplication([('/', MainPage)]))

Otherwise it just wraps the class, not the actual instance of it and while it seems to work, it can lead to silent corruptions (dropping of async tasks).

Am I correct in this assumption? Should I file a bug for this?

Thanks,
Attila

[1] https://developers.google.com/appengine/docs/python/ndb/async

Guido van Rossum

unread,
Aug 27, 2012, 5:06:49 PM8/27/12
to google-a...@googlegroups.com
I'll just fix this. (If you already filed a bug tell me the URL.)

Attila-Mihaly Balazs

unread,
Aug 28, 2012, 10:39:38 AM8/28/12
to google-a...@googlegroups.com
Thanks, I posted an issue here: http://code.google.com/p/googleappengine/issues/detail?id=8030

Regards,
Attila
Reply all
Reply to author
Forward
0 new messages