Tornado 6.1 Documentation
c() b = await c() # "return" and "yield" # cannot be mixed in # Python 2, so raise a # special exception. # Return normally raise gen.Return(b) import multi async def parallel_fetch(url1, url2): resp1, resp2 = await multi([http_client.fetch(url1), http_client.fetch(url2)]) async def parallel_fetch_many(urls): @gen.coroutine def parallel_fetch_decorated(url1, url2): resp1, resp2 = yield [http_client.fetch(url1), http_client.fetch(url2)] Interleaving Sometimes it is useful to save a0 码力 | 931 页 | 708.03 KB | 1 年前3Tornado 6.0 Documentation
yield c() b = await c() # "return" and "yield" # cannot be mixed in # Python 2, so raise a # special exception. # Return normally raise gen.Return(b) import multi async def parallel_fetch(url1, url2): resp1, resp2 = await multi([http_client.fetch(url1), http_client.fetch(url2)]) async def parallel_fetch_many(urls): @gen.coroutine def parallel_fetch_decorated(url1, url2): resp1, resp2 = yield [http_client.fetch(url1), http_client.fetch(url2)] Interleaving Sometimes it is useful to save a0 码力 | 869 页 | 692.83 KB | 1 年前3Tornado 5.1 Documentation
Tornado Documentation Release 5.1.1 The Tornado Authors Mar 01, 2019 Contents 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 Installation 9 5 Documentation 11 5.1 User’s guide . . . that require a long-lived connection to each user. Contents 1 Tornado Documentation, Release 5.1.1 2 Contents CHAPTER 1 Quick links • Current version: 5.1.1 (download from PyPI, release notes) • Source Stack Overflow • Wiki 3 Tornado Documentation, Release 5.1.1 4 Chapter 1. Quick links CHAPTER 2 Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.1 Documentation
Tornado Documentation Release 6.1 The Tornado Authors Oct 31, 2020 Contents 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 that require a long-lived connection to each user. Contents 1 Tornado Documentation, Release 6.1 2 Contents CHAPTER 1 Quick links • Current version: 6.1 (download from PyPI, release notes) • Source • Stack Overflow • Wiki 3 Tornado Documentation, Release 6.1 4 Chapter 1. Quick links CHAPTER 2 Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 4.5 Documentation
Tornado Documentation Release 4.5.3 The Tornado Authors Jan 06, 2018 Contents 1 Quick links 3 2 Hello, world 5 3 Installation 7 4 Documentation 9 4.1 User’s guide . . . . . . . . . . . . . . . that require a long-lived connection to each user. Contents 1 Tornado Documentation, Release 4.5.3 2 Contents CHAPTER 1 Quick links • Current version: 4.5.3 (download from PyPI, release notes) • Source Stack Overflow • Wiki 3 Tornado Documentation, Release 4.5.3 4 Chapter 1. Quick links CHAPTER 2 Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import0 码力 | 222 页 | 833.04 KB | 1 年前3Tornado 6.4 Documentation
Tornado Documentation Release 6.4 The Tornado Authors Jan 12, 2024 CONTENTS 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 that require a long-lived connection to each user. CONTENTS 1 Tornado Documentation, Release 6.4 2 CONTENTS CHAPTER ONE QUICK LINKS • Current version: 6.4 (download from PyPI, release notes) • Source asynchronous features; for that see this simple chat room. 5 Tornado Documentation, Release 6.4 6 Chapter 2. Hello, world CHAPTER THREE THREADS AND WSGI Tornado is different from most Python web frameworks0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
Tornado Documentation Release 6.4 The Tornado Authors Nov 29, 2023 CONTENTS 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 that require a long-lived connection to each user. CONTENTS 1 Tornado Documentation, Release 6.4 2 CONTENTS CHAPTER ONE QUICK LINKS • Current version: 6.4 (download from PyPI, release notes) • Source asynchronous features; for that see this simple chat room. 5 Tornado Documentation, Release 6.4 6 Chapter 2. Hello, world CHAPTER THREE THREADS AND WSGI Tornado is different from most Python web frameworks0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
Tornado Documentation Release 6.4 The Tornado Authors Nov 29, 2023 CONTENTS 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 that require a long-lived connection to each user. CONTENTS 1 Tornado Documentation, Release 6.4 2 CONTENTS CHAPTER ONE QUICK LINKS • Current version: 6.4 (download from PyPI, release notes) • Source asynchronous features; for that see this simple chat room. 5 Tornado Documentation, Release 6.4 6 Chapter 2. Hello, world CHAPTER THREE THREADS AND WSGI Tornado is different from most Python web frameworks0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.5 Documentation
Tornado Documentation Release 6.5.1 The Tornado Authors May 22, 2025CONTENTS 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 that require a long-lived connection to each user. CONTENTS 1Tornado Documentation, Release 6.5.1 2 CONTENTSCHAPTER ONE QUICK LINKS • Current version: 6.5.1 (download from PyPI, release notes) • Source asynchronous features; for that see this simple chat room. 5Tornado Documentation, Release 6.5.1 6 Chapter 2. Hello, worldCHAPTER THREE THREADS AND WSGI Tornado is different from most Python web frameworks0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 4.5 Documentation
[https://github.com/tornadoweb/tornado] as well. Prerequisites: Tornado runs on Python 2.7, and 3.3+ For Python 2, version 2.7.9 or newer is strongly recommended for the improved SSL support. In addition to the requirements thread pool for use with Tornado and enables the use of ThreadedResolver. It is needed only on Python 2; Python 3 includes this package in the standard library. pycurl [http://pycurl.sourceforge.net] is used raise gen.Return(response.body) The statement raise gen.Return(response.body) is an artifact of Python 2, in which generators aren’t allowed to return values. To overcome this, Tornado coroutines raise a special0 码力 | 333 页 | 322.34 KB | 1 年前3
共 20 条
- 1
- 2