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
More Posts related to Python,
- Set width and height for the label in tkinter
- pip get list of all outdated Python packages
- Python Program To Calculate Simple Interest (SimpleInterest.py)
- How to uninstall pip Python packages
- Python Hello World! Program with code example (snippet)
- tkinter - Hello World! Program
- Change the background of Tkinter label or text
- Check installed Python version in Windows, Linux & macOS
- Whats new in Python 3.10 Pre-release
- Calculate discount amount python code
- How to create Custom RatingBar Android Programming Tutorial - Android
- How to use HashTags # correctly on Social Media Facebook Twitter - HowTos
- connection.url property value in hibernate.cfg.xml for mysql - Java
- Android AlertDialog with 3 buttons example - Android
- SQLite with Android Easy to Understand Tutorial that covers Select, Insert, Update and Delete - Android
- remove div vertical scroll - Html
- Android Display Toast on Button Click - Android
- Check Internet Connection WIFI 4G is active on Android Programmatically - Android
- Device not compatible error Android Google Play Store - Android
- [Mac] To open Eclipse you need to install the legacy java se 6 runtime - Mac-OS-X
- 86 Gmail keyboard shortcuts that you may find Advantageous - Google
- Maven Eclipse (M2e) No archetypes currently available - Java
- Tutorial: CSS Media Query for Responsive Web Design - CSS
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps - HowTos
- ActivityManager Warning: Activity not started, its current task has been brought to the front - Android