Python 3.7 has been released. Currently, the main versions used by Python users should be Python3.6 and Python2.7. So should we switch to Python 3.7?
#First of all, everyone must know that Python 3.7 is an upgrade to Python 3.6. Python official new features for 3.7: (recommended learning: Python video tutorial)
PEP 538, the command line interface of the default interpreter will automatically pass a new environment variable PYTHONCOERCECLOCALE Conversion when there is a feasible UTF-8 based environment (such as C.UTF-8, C.utf8 and UTF-8), depends on whether the environment variable is set and its value.
PEP 539, brings a new C-API for thread-local storage to CPython. PEP 540, adds a new UTF-8 mode, which is enabled by default on POSIX-compliant operating systems and can be changed through the environment variable PYTHONUTF8.
PEP 552, a new source code file verification based on hash value is added for pyc format files.
PEP 553, a new built-in function breakpoint() allows you to enter Python or customize Debugger more conveniently.
PEP 557, a new decorator for Data Classes, reduces the amount of code required when creating classes, and can automatically create methods such as __init__, __repr__, and __eq__.
PEP 560, optimized the typing module and generic types by modifying the core part of the interpreter.
PEP 562, Customized access to module properties.
PEP 563, Optimize Python’s type hints by deferring analysis of comment statements.
PEP 564, a new nanosecond precision method that supports returning int integer form is added to the time module.
PEP 565, once again display Deprecation Warning such as SyntaxWarning and RuntimeWarning at __main__ by default.
PEP 567, a new contextvars module is added to prevent the status of variables from accidentally leaking to other codes in concurrent code through the context manager.
For more details, please go to the python official website.
What we need to pay attention to most is that compared to 3.6, 3.7 is almost completely compatible in syntax, except for the following:
Backwards incompatible syntax changes: async and await are now reserved keywords.
This passage points out that the only incompatibility of 3.7 with 3.6 is that async and await have become reserved keywords in the Python language.
What's the meaning?
The words async and await are just like the words import, for, and while. They are keywords reserved by the system for special purposes.
That is to say, in Python 3.7 you cannot use names such as defined variables and functions
For more Python related technical articles, please visit PythonTutorial column to learn!
The above is the detailed content of What is the difference between python3.6 and 3.7. For more information, please follow other related articles on the PHP Chinese website!

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于Seaborn的相关问题,包括了数据可视化处理的散点图、折线图、条形图等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于进程池与进程锁的相关问题,包括进程池的创建模块,进程池函数等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于简历筛选的相关问题,包括了定义 ReadDoc 类用以读取 word 文件以及定义 search_word 函数用以筛选的相关内容,下面一起来看一下,希望对大家有帮助。

VS Code的确是一款非常热门、有强大用户基础的一款开发工具。本文给大家介绍一下10款高效、好用的插件,能够让原本单薄的VS Code如虎添翼,开发效率顿时提升到一个新的阶段。

pythn的中文意思是巨蟒、蟒蛇。1989年圣诞节期间,Guido van Rossum在家闲的没事干,为了跟朋友庆祝圣诞节,决定发明一种全新的脚本语言。他很喜欢一个肥皂剧叫Monty Python,所以便把这门语言叫做python。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于数据类型之字符串、数字的相关问题,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于numpy模块的相关问题,Numpy是Numerical Python extensions的缩写,字面意思是Python数值计算扩展,下面一起来看一下,希望对大家有帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
