Trey Hunner - Lazy Looping in Python: Making and Using Generators and Iterators - PyCon 2019

  Рет қаралды 8,085

PyCon 2019

PyCon 2019

Күн бұрын

Пікірлер: 8
@giandja1
@giandja1 4 жыл бұрын
Really nice talk, this made this topic so much clearer for me
@the-ghost-in-the-machine1108
@the-ghost-in-the-machine1108 Жыл бұрын
great lesson
@usf5914
@usf5914 4 жыл бұрын
3:23:00 __iter__ __next__ convert a yield function to class OR why we need yield
@BuvanAlmighty
@BuvanAlmighty 4 жыл бұрын
Learned a lot from this talk.. Very well presented
@mergen.t
@mergen.t Жыл бұрын
2:40:00 yield from
@TreyHunner
@TreyHunner 5 жыл бұрын
The course resources are at this URL: pycon2019.trey.io
@usf5914
@usf5914 4 жыл бұрын
list comprehensions 7:51 filter with list comprehension ***until 2:16:38 will undrstand blow topics !list : [x**2 for x in range(10)] [ ] !generator : (x**2 for x in range(10)) !!to reduce memory usage, generate numbers when is needed !!generator create a disposable lazy loop,that with " next function ", generate next item. !!! !! delete extra parantesis print(x**2 for x in range(10)) sum(x**2 for x in range(10)) !converting generator to list [x**2 for x in range(10)] list(x**2 for x in range(10)) !! two above is equal !tuple conversions tuple(x**2 for x in range(10)) _______ yield sign in traffic def count(n=0): print('start') while n
@gongfei
@gongfei 4 жыл бұрын
"generator expression" started at 1:02:37
Elana Hashman - The Black Magic of Python Wheels - PyCon 2019
26:23
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 132 МЛН
Loop like a native: while, for, iterators, generators
29:15
Next Day Video
Рет қаралды 118 М.
"Lazy Looping: The Next Iteration" by Trey Hunner
55:23
Six Feet Up
Рет қаралды 96
Reuven M. Lerner - Practical decorators - PyCon 2019
29:12
PyCon 2019
Рет қаралды 41 М.
Daniel Chen - Pandas is for Everyone - PyCon 2019
3:18:53
PyCon 2019
Рет қаралды 12 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН