Tornado 1.1 新特性¶

Sep 7, 2010¶

  1. We are pleased to announce the release of Tornado 1.1, available from
  2. https://github.com/downloads/facebook/tornado/tornado-1.1.tar.gz
  3.  
  4. Changes in this release:
  5. * RequestHandler.async_callback and related functions in other classes
  6. are no longer needed in most cases (although it's harmless to continue
  7. using them). Uncaught exceptions will now cause the request to be closed
  8. even in a callback. If you're curious how this works, see the new
  9. tornado.stack_context module.
  10. * The new tornado.testing module contains support for unit testing
  11. asynchronous IOLoop-based code.
  12. * AsyncHTTPClient has been rewritten (the new implementation was
  13. available as AsyncHTTPClient2 in Tornado 1.0; both names are
  14. supported for backwards compatibility).
  15. * The tornado.auth module has had a number of updates, including support
  16. for OAuth 2.0 and the Facebook Graph API, and upgrading Twitter and
  17. Google support to OAuth 1.0a.
  18. * The websocket module is back and supports the latest version (76) of the
  19. websocket protocol. Note that this module's interface is different
  20. from the websocket module that appeared in pre-1.0 versions of Tornado.
  21. * New method RequestHandler.initialize() can be overridden in subclasses
  22. to simplify handling arguments from URLSpecs. The sequence of methods
  23. called during initialization is documented at
  24. http://tornadoweb.org/documentation#overriding-requesthandler-methods
  25. * get_argument() and related methods now work on PUT requests in addition
  26. to POST.
  27. * The httpclient module now supports HTTP proxies.
  28. * When HTTPServer is run in SSL mode, the SSL handshake is now non-blocking.
  29. * Many smaller bug fixes and documentation updates
  30.  
  31. Backwards-compatibility notes:
  32. * While most users of Tornado should not have to deal with the stack_context
  33. module directly, users of worker thread pools and similar constructs may
  34. need to use stack_context.wrap and/or NullContext to avoid memory leaks.
  35. * The new AsyncHTTPClient still works with libcurl version 7.16.x, but it
  36. performs better when both libcurl and pycurl are at least version 7.18.2.
  37. * OAuth transactions started under previous versions of the auth module
  38. cannot be completed under the new module. This applies only to the
  39. initial authorization process; once an authorized token is issued that
  40. token works with either version.
  41.  
  42. Many thanks to everyone who contributed patches, bug reports, and feedback
  43. that went into this release!
  44.  
  45. -Ben

原文:

https://tornado-zh-cn.readthedocs.io/zh_CN/latest/releases/v1.1.0.html