Skip to main content

Posts

Showing posts with the label New Features of Python 3.8

What’s New in Python 3.8? | Best New Features of Python 3.8

The Best New Features of Python 3.8 The Python 3.8 is the latest version and it used for scripting and automation to machine learning and web development. Let’s explains one-by-one the Python 3.8 new features - => Assignment expressions if (n := len(a)) > 10:     print(f"List is too long ({n} elements, expected <= 10)")              => Positional-only parameters def pow(x, y, z=None, /):     r = x**y     if z is not None:         r %= z     return r => Parallel filesystem cache for compiled bytecode files => Debug build uses the same ABI as release build => A fast calling protocol for CPython => The subprocess.Popen() can now use os.posix_spawn() in some cases for better performance => The statistics.mode() function no longer raises an exception when given mu...