Ned batchelder-facts and Myths about Python names and Values-pycon 2015:
Https://www.youtube.com/watch?v=_AEJHKGk9ns
Ned Batchelder--Loop like a native:while, for, iterators, generators:
https://www.youtube.com/watch?v=EnSu9hHGq5o
Transforming Code into Beautiful, idiomatic Python:
Https://www.youtube.com/watch?v=OSGv2VnC0go
Before writing a piece of Python want to put more than 10 m file, read into memory, and then write a code like this:
1 totalstr=""2 line=f.readline ()3while(line): 4 Totalstr + = line.strip ()5 line=f.readline ()
Then read a more than 10 m file for about 10 minutes ... [Mask crying]
Later I replaced it with:
1 Totalstrlist=[]2 line=f.readline ()3while (line): 4 Totalstrlist.append (Line.strip ())5 line=f.readline ()6 '. Join (Totalstrlist)
Then it took less than a second ... [Mask face Again crying]
I've been looking for Scott Meyers in the Python world.