Stream & Multipart
1. Generator
def gen():
yield 1
yield 2
yield 3>>> x = gen()
>>> x
<generator object gen at 0x7f06f3059c30>
>>> next(x) // python3
1
>>> next(x)
2
>>> next(x)
3
>>> next(x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
StopIteration2. Multipart
3. Video Streaming Server = generator + multipart
4. Limitation
Last updated