Cover image for Python features by version

Python features by version

misobelica profile image Mišo Updated on ・4 min read

From time to time I need to poke someone to use a new version of Python but I couldn't find the list of main features one gets by this. There is https://docs.python.org/3.10/whatsnew/index.html but that is too much info. So here is my concise list.

Python 3.9

Python 3.8

Python 3.7

class Point:
    x: float
    y: float
    z: float = 0.0

p = Point(1.5, 2.5)
print(p)   # produces "Point(x=1.5, y=2.5, z=0.0)"

Python 3.6

async def ticker(delay, to):
    """Yield numbers from 0 to *to* every *delay* seconds."""
    for i in range(to):
        yield i
        await asyncio.sleep(delay)
result = [i async for i in aiter() if i % 2]
result = [await fun() for fun in funcs if await condition()]

Python 3.5

Python 3.4

Python 3.3

Python 3.2

Python 3.1

  • OrderedDict
  • with handles multiple context managers in single statement

Python 3.0

Posted on by:

misobelica profile



I am an introvert ☺️


Editor guide

LOL for the last item in the list😂