Python has pre-released a new version 3.10 (3.10.0a7) on April 10, 2021 which is still in development, the last stable release was Python 3.09 released on May 20, 2020.
Whats new features in Python 3.10
- Parenthesized context managers
- Better error messages in the parser
- PEP 626: Precise line numbers for debugging and other tools
- PEP 634: Structural Pattern Matching
- PEP 563: Postponed Evaluation of Annotations Becomes Default
- PEP 604: New Type Union Operator
- PEP 612: Parameter Specification Variables
- PEP 613: TypeAlias Annotation
Some Other Changes:
- int type now has a new method int.bit_count() - this method returns the number of ones in the binary expansion of a given integer.
- dict.keys(), dict.values() and dict.items() returns a view that has a mapping attribute that gives a types.MappingProxyType object wrapping the original dictionary.
- PEP 618: The zip() function now has an optional strict flag, used to require that all the iterables have an equal length.
- Builtin and extension functions that take integer arguments no longer accept Decimals, Fractions and other objects that can be converted to integers only with a loss
- Static methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (__module__, __name__, __qualname__, __doc__, __annotations__) and have a new __wrapped__ attribute.
- Two new builtin functions – aiter() and anext() have been added to provide asynchronous counterparts to iter() and next()
- Assignment expressions can now be used unparenthesized within set literals and set comprehensions, as well as in sequence indexes (but not slices).
Source: See more - https://docs.python.org/3.10/whatsnew/3.10.html
Comments:
-
ddve 11 Apr 2121 07:05:56 GMT
Read more: https://blog.python.org
- Further comments disabled!
More Posts related to Python,
- How to Install Python Modules in VS Code
- 3 Python program to add two numbers
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- Python: How to get Current Directory
- Python - Convert float to String
- Tkinter - add x and y padding to label text
- Check if String Contains a Substring - Python
- Read JSON File in Python Program
- How to Convert String to DateTime in Python
- Sorting an array using Bubble Sort in Python Programming
- Python Hello World! Program with code example (snippet)
- How to delete a dir or folder using Python code
- Change label (text) color in tkinter
- Set width and height for the label in tkinter
- Check version of pip package installer for Python
- Reading JSON file in Python with Examples
- Indent Python code in Notepad++
- tkinter - Hello World! Program
- How to resolve Failed to create interpreter PyCharm Error
- Base64 Encoding Decoding in Python Programming
- How to pip install Python Modules in VSCode
- How to take user input from the console in a Python program
- Take input argument from command line in Python Programming
- Python Program To Calculate Simple Interest (SimpleInterest.py)
- Calculate discount amount python code
More Posts:
- Merge multiple zip files without unzipping (extracting) - HowTos
- Fix Error 2711 SQL RBS client - The installer has encountered an unexpected error. The specified Feature name ('Docs') not found in Feature table - SharePoint
- BeanDefinitionStoreException IOException parsing XML document from class path resource [spring.xml] - Java
- Managed Metadata error - The data returned from the tagging UI was not formatted correctly - SharePoint
- Installing Google Cloud macOS SDK - Google
- How to add hours and minutes to Java Instant - Java
- Share Image to WhatsApp with Caption from your Android App - WhatsApp
- Java: TimeZone List with GMT/UTC Offset - Java