]> git.ipfire.org Git - thirdparty/tornado.git/commit
Remove weak reference from WaitIterator.
authorBen Darnell <ben@bendarnell.com>
Wed, 6 May 2015 05:16:30 +0000 (22:16 -0700)
committerBen Darnell <ben@bendarnell.com>
Wed, 6 May 2015 05:16:30 +0000 (22:16 -0700)
commitc3aa6e5c4bf84609db5467837b398a9de3b3c6a1
treede80b7f4027889381f21151bfe720120659d2777
parent62ecb8026d51a373c655af74e617b8546b5d2a6d
Remove weak reference from WaitIterator.

This reference is the only thing holding the asynchronous "stack"
together in some cases, so making it weak could allow coroutines
to be garbage collected while running. This was mainly a problem
on Python 3.4, which is much better at garbage collecting generators
than older versions.

Fixes #1429.
tornado/gen.py