Raymond Hettinger @raymondh 10/28/2017
#python tip: iter(C, sentinel) returns an iterator that invokes the callable C until it returns a sentinel signaling the iterator is done.Raymond Hettinger @raymondh 10/25/2017
#python teaching tip: When teaching adults, half of your time should be spent helping students unlearn pre-existing incorrect knowledge.Raymond Hettinger @raymondh 10/23/2017
#python insight of the day: Directories are a namespace and behave like dictionaries where the key is a filename and the value is an inode.Raymond Hettinger @raymondh 10/5/2017
#python news: #PyPy version 5.9 has just been released.Raymond Hettinger @raymondh 9/24/2017
Put another way. With "yield" the consumer controls execution. With "await" the producer controls execution. Very different points of view.Raymond Hettinger @raymondh 9/24/2017
With #python iterators, we think of next() as initiating execution. With coroutines, we "await" a downstream event to initiate execution.