Introduce IOLoop.current() as a thread-local counterpart to IOLoop.instance(). gen.engine now recognizes Futures directly.
Internally, StackContexts now return a deactivation callback, which can be used to prevent that StackContext from propagating further. This is used in gen.engine because the decorator doesn't know which arguments are callbacks that need to be wrapped outside of its ExceptionStackContext. This is deliberately undocumented for now. Closes #507.
Might as well get all the merge headaches over with at once :) Ran with $ autopep8 --ignore=E111,W602 i tornado/*.py tornado/platform/*.py tornado/test/*.py
All existing uses of division were already using a float for at least one operand (except the tests that just do 1/0 as a quick way to throw an exception). We have now turned on all the __future__ options available in python2.5.
Add some more test cases that use gen.engine and web.asynchronous together.
to be caught by the generator.
…ument. Closes #351.