Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 11, 2014
  1. @leekchan

    Fixed some typos

    leekchan authored
Commits on Feb 17, 2014
  1. @bdarnell

    Add a fast path to stack_context when there are no active contexts.

    bdarnell authored
    This case is increasingly common now that coroutines are decoupled
    from stack contexts.
Commits on May 27, 2013
  1. @bdarnell
  2. @bdarnell
Commits on May 26, 2013
  1. @bdarnell

    Fix an exception when the outermost stack_context is deactivated.

    bdarnell authored
    Add more tests for deactivation in various scenarios.
Commits on May 20, 2013
  1. @mrjoes
  2. @mrjoes

    Unnecessary import removed

    mrjoes authored
  3. @mrjoes
Commits on May 12, 2013
  1. @bdarnell
Commits on Apr 28, 2013
  1. @homm
Commits on Apr 13, 2013
  1. @mrjoes
  2. @mrjoes

    Use range instead of xrange

    mrjoes authored
  3. @mrjoes

    Comparison fix

    mrjoes authored
  4. @mrjoes
Commits on Mar 16, 2013
  1. @bdarnell

    Doc updates, modules N-T.

    bdarnell authored
  2. @bdarnell
Commits on Feb 18, 2013
  1. @vkosh

    Fix docstrings quoting.

    vkosh authored
Commits on Feb 16, 2013
  1. @bdarnell
Commits on Jan 14, 2013
  1. @bdarnell

    Convert print to a function and add future imports.

    bdarnell authored
    Automated with 2to3 and custom fixer.
    2to3 -f print tornado > print.diff
    2to3 -f print -d tornado > print_doctest.diff
    maint/scripts/run_fixers.py -f future_import tornado > future.diff
    cd tornado
    git apply ../{print,print_doctest,future}.diff
Commits on Nov 17, 2012
  1. @bdarnell

    Fix a memory leak in stack_context.

    bdarnell authored
    The old_contexts reference in StackContexts could maintain a chain of
    old irrelevant contexts, so clear it once it's no longer needed.
    This was mainly a problem in gen.engine, where additional contexts
    would accumulate in memory (but not on the stack) for each asynchronous
    operation.
    
    Also clear the deactivate_stack_context in gen.Runner to allow
    the StackContext to be garbage-collected sooner.
Commits on Sep 29, 2012
  1. @bdarnell

    Simplify StackContext logic and behavior.

    bdarnell authored
    Previously, there was an optimization to avoid recreating contexts
    that were already on the stack.  This optimization rarely mattered
    (especially given the movement to run all callbacks through
    IOLoop.add_callback), and sometimes caused surprising behavior as
    other exception handlers could be inserted between stack contexts that
    expected to be adjacent to each other or to the wrapped function.  Now
    each wrapped function recreates its full stack of contexts, even if
    some of those contexts were already on the stack.
    
    This change allows a use of NullContext in testing.py to be
    removed.
  2. @bdarnell

    Improve isolation of stack contexts.

    bdarnell authored
    Previously, a chain of callbacks started without any contexts could
    accidentally pick up other contexts based on where the callbacks
    were run.  This was due to a mistaken optimization in the no-context
    case; now the behavior is the same whether the initial context was empty
    or not.
Commits on Aug 27, 2012
  1. @bdarnell

    Autopep8 cleanups.

    bdarnell authored
Commits on Jun 27, 2012
  1. @polymorphm
Commits on May 28, 2012
  1. @bdarnell

    Doc updates

    bdarnell authored
  2. @bdarnell
Commits on May 21, 2012
  1. @bdarnell

    Prevent leak of StackContexts in repeated gen.engine functions.

    bdarnell authored
    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.
Commits on May 11, 2012
  1. @bdarnell

    Replace all occurrences of 3-argument raise statements with the

    bdarnell authored
    version from testing.py, which works better with 2to3.
    
    Closes #508
Commits on Feb 9, 2012
  1. @bdarnell

    While I'm touching every file, run autopep8 too.

    bdarnell authored
    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
  2. @bdarnell

    Turn on __future__ division too.

    bdarnell authored
    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.
  3. @bdarnell
Commits on Dec 30, 2011
  1. @bdarnell

    Misc doc updates.

    bdarnell authored
Commits on Jul 14, 2011
  1. @ovidiucp

    Fix misspelling.

    ovidiucp authored
Commits on Jul 3, 2011
  1. @bdarnell

    Create the StackContext in @asynchronous instead of on all requests,

    bdarnell authored
    to improve performance in the synchronous case.
Commits on Jun 27, 2011
  1. @bdarnell

    Replace all bare "except:" blocks with "except Exception:" so we don't

    bdarnell authored
    accidentally catch KeyboardInterrupt.
Something went wrong with that request. Please try again.