Tornado 6.5 Documentation
Examples in the Tornado documentation will generally use the native form. Translation between the two forms is generally straightforward: # Decorated: # Native: # Normal function declaration # with decorator special exception. # Return normally raise gen.Return(b) return b Other differences between the two forms of coroutine are outlined below. • Native coroutines: – are generally faster. – can use async for for HTTPServerRequest for a complete list of attributes. Request data in the formats used by HTML forms will be parsed for you and is made available in methods like get_query_argument and get_body_argument0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
Examples in the Tornado documentation will generally use the native form. Translation between the two forms is generally straightforward: # Decorated: # Native: # Normal function declaration Return normally raise gen.Return(b) return b Other differences between the two forms of coroutine are outlined below. Native coroutines: are generally faster. can use async for and for HTTPServerRequest for a complete list of attributes. Request data in the formats used by HTML forms will be parsed for you and is made available in methods like get_query_argument and get_body_argument0 码力 | 437 页 | 405.14 KB | 2 月前3
共 2 条
- 1
相关搜索词