February 05, 2020 /   python 3.9 features   python   latest python

Python 3.9 Features

Python 3.9 (3.9.0a3) is set to be released on Feb 05, 2020. It is mostly improvement and bug fixes release.

Python 3.9 features/improvements/bug fixes

>>> import ast
>>> exp = '4 - 3'
>>> parsed_object = ast.parse(exp, mode='eval')
>>> print (parsed_object)
<_ast.Expression object at 0x7fe61bfff4c0>
>>> unparsed_object = ast.unparse(parsed_object)
>>> print (unparsed_object)
(4 - 3)
>>> 


if __name__ == '__main__':
    this_file = _ _file_ _
    print (this_file)