Tornado 4.5 Documentation
example from Motor [https://motor.readthedocs.io/en/stable/]: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently… callbacks tornado.testing — Unit testing support for asynchronous code Asynchronous test cases Controlling log output Test runner Helper functions tornado.util — General-purpose utilities tornado.autoreload0 码力 | 333 页 | 322.34 KB | 1 年前3Tornado 4.5 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): Tornado Documentation, Release 4.5.3 loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently autoreload=False). This module can also be used as a command-line wrapper around scripts such as unit test runners. See the main method for details. The command-line wrapper and Application debug modes can0 码力 | 222 页 | 833.04 KB | 1 年前3Tornado 6.0 Documentation
example from Motor [https://motor.readthedocs.io/en/stable/]: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently… clear_current() → None[source] Clears the IOLoop for the current thread. Intended primarily for use by test frameworks in between tests. Changed in version 5.0: This method also clears the current asyncio0 码力 | 869 页 | 692.83 KB | 1 年前3Tornado 6.1 Documentation
example from Motor [https://motor.readthedocs.io/en/stable/]: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently… clear_current() → None[source] Clears the IOLoop for the current thread. Intended primarily for use by test frameworks in between tests. Changed in version 5.0: This method also clears the current asyncio0 码力 | 931 页 | 708.03 KB | 1 年前3Tornado 6.1 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently IOLoop.clear_current() → None Clears the IOLoop for the current thread. Intended primarily for use by test frameworks in between tests. Changed in version 5.0: This method also clears the current asyncio0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.0 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently IOLoop.clear_current() → None Clears the IOLoop for the current thread. Intended primarily for use by test frameworks in between tests. Changed in version 5.0: This method also clears the current asyncio0 码力 | 245 页 | 885.76 KB | 1 年前3Tornado 6.5 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently and instead initialize the asyncio event loop and use IOLoop.current(). In some cases, such as in test frameworks when initializing an IOLoop to be run in a secondary thread, it may be appropriate to construct0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 5.1 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) We compile all templates to raw Python. Error-reporting is currently static IOLoop.clear_current() Clears the IOLoop for the current thread. Intended primarily for use by test frameworks in between tests. Changed in version 5.0: This method also clears the current asyncio0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.4 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) 62 Chapter 6. Documentation Tornado Documentation, Release 6.4 and instead initialize the asyncio event loop and use IOLoop.current(). In some cases, such as in test frameworks when initializing an IOLoop to be run in a secondary thread, it may be appropriate to construct0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
from accessing the results, as in this example from Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): directory and caches the compiled templates: loader = template.Loader("/home/btaylor") print(loader.load("test.html").generate(myvalue="XXX")) 62 Chapter 6. Documentation Tornado Documentation, Release 6.4 and instead initialize the asyncio event loop and use IOLoop.current(). In some cases, such as in test frameworks when initializing an IOLoop to be run in a secondary thread, it may be appropriate to construct0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2