Anand wrote: > > Next release of web.py will be version 0.3. As you number suggests it > will be major release. There will be some changes to API, which > breaks the backward compatability. But I promise, it is not going to > change very much. > > Major changes will be > * return instead of print > * moving away from globals > * better db api > > Apart from these, the existing subversion repository is be migrated > to bazaar. > From now on, the official repository will be > > http://webpy.org/bzr/webpy.dev > > Please let me know if you have any suggestions, objections or feature > requests. > Some of these changes(application stuff and return instead of print) > are already checked in, I request you to play with it and let me know > if there are any bugs. > > Here is how the new API is going to look like. > > ## Hello world > > `print` will be replaced with `return`. > > import web > > urls = ( > '/(.*)', 'hello' > ) > > # more about this later > app = web.application(urls, globals()) > > class hello: > def GET(self, name): > if not name: name = 'world' > return 'Hello,' + name + '!' > > if __name__ == "__main__": > app.run()
Hey, Perhaps I am a little late with this, perhaps it has already been mentioned (I could not find it on the list right away, but OK): something just crossed my mind regarding those returns. Will there still be yield? That is pretty useful for large HTML pages especially if it is a collection of smaller parts that each take quite some time to generate. Anyway, I was just wondering about it. Greetings, b^4 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
