The TIL series of articles contains very short articles documenting something I learned “today”.
Today I learned about the generator method close.
close
Today I learned that generators support membership testing with the operator in.
in
Today I learned not to cache generators.
Today I learned that Python generators can return a value.
The 2 hardest problems in programming are naming, cache invalidation, and off-by-one errors.