Tornado 6.1 Documentation
divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since # we pass the function object to be called by the IOLoop. IOLoop.current() method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 6.0 Documentation
divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since # we pass the function object to be called by the IOLoop. IOLoop.current() method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since # we pass the function object to be called by the IOLoop. IOLoop.current() batch-oriented program: 6.1. User’s guide 17 Tornado Documentation, Release 6.1 # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 6.5 Documentationdef divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since (continues on next page) 6.1. User’s guide 17Tornado Documentation method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.4 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since (continues on next page) 6.1. User’s guide 17 Tornado Documentation method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since (continues on next page) 6.1. User’s guide 17 Tornado Documentation method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since (continues on next page) 6.1. User’s guide 17 Tornado Documentation method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.0 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since # we pass the function object to be called by the IOLoop. IOLoop.current() method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.3 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since (continues on next page) 6.1. User’s guide 17 Tornado Documentation method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 264 页 | 1.06 MB | 1 年前3
Tornado 6.2 Documentation
def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine is called incorrectly. divide(1, 0) In nearly all cases, any function that # The IOLoop will catch the exception and print a stack trace in # the logs. Note that this doesn't look like a normal call, since (continues on next page) 6.1. User’s guide 17 Tornado Documentation method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1,0 码力 | 260 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2













