Slice infinite generators with this Python 3.7 feature
May19

Slice infinite generators with this Python 3.7 feature

This is the eighth in a series of articles about features that first appeared in a version of Python 3.x. Python 3.7 was first released in 2018, and even though it has been out for a few years, many of the features it introduced are underused and pretty cool. Here are three of them. Postponed evaluation of annotations In Python 3.7, as long as the right __future__ flags are activated, annotations are not evaluated during runtime: read...

Read More