News

Python 3.8.0 alpha 1 is now available for testing

2 min read

Yesterday, the first alpha of Python 3.8.0 was announced in a Python blog post. The most important change in this version is the addition of Assignment Expressions. This is the first alpha, three more are yet to be released. Keep in mind that the features are raw and not meant for production use.

Some changes in Python 3.8.0 alpha 1:

Security changes

  • When spawning child processes, the command line option -I to run Python in isolated mode is now copied by the multiprocessing and distutils modules as well
  • OpenSSL is updated to OpenSSL 1.1.0i for Windows builds
  • The thread safety of error handling is fixed in _ssl
  • A small fix to prevent buffer overrun in os.symlink for Windows

Changes in core and builtins

  • PEP 572: This introduces a new way which assigns values to variables in an expression by using the NAME := expr notation
  • Parenthesis are made optional for named expressions in a while statement.
  • Python initialization is reorganized to get exceptions and sys.stderr early.
  • A small memory leak is fixed in pymain_parse_cmdline_impl.
  • For unbalanced parentheses in f-string, the syntax messages are better.
  • End line and end column position information are added to the Python AST nodes
  • During the Python initialization, the Python filesystem encoding is read faster

Library changes

  • Shared memory submodule is added to multiprocessing in order to avoid serialization between processes
  • The KeyError exception when using enums and compile is now fixed
  • help() on metaclasses is fixed
  • The raise(signum) is now exposed as raise_signal
  • Building enums by value are now faster

These were a select few changes in Python 3.8.0 alpha 1. For a complete list of changes, you may go through the changelog.

Read next

Introducing RustPython, Python 3 interpreter written in Rust

EuroPython Society announces the ‘Guido van Rossum Core Developer Grant’ program to honor Python core developers

pandas will drop support for Python 2 this month with pandas 0.24

Prasad Ramesh

Data science enthusiast. Cycling, music, food, movies. Likes FPS and strategy games.

Share
Published by
Prasad Ramesh

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago