The added notes appear in the default traceback. That is not available at the time when the exception is raised. It can be used to enrich exceptions with context information The add_note() method is added to BaseException. Irit Katriel, Yury Selivanov and Guido van Rossum.) PEP 678: Exceptions can be enriched with notes ¶ (Contributed by Irit Katriel in bpo-45292. Make it possible to group exceptions and raise them together,Įxcept to match subgroups of exception groups. The builtin types ExceptionGroup and BaseExceptionGroup To raise and handle multiple unrelated exceptions simultaneously. PEP 654 introduces language features that enable a program Or the PYTHONNODEBUGRANGES environment variable. Use the -X no_debug_ranges command line option Which may result in a small increase in interpreter memory usageĪnd disk usage for compiled Python files.Īnd deactivate printing the extra traceback information, This feature requires storing column positions in Code Objects, That caused the error, instead of just the line. When printing tracebacks, the interpreter will now point to the exact expression New Features ¶ PEP 657: Fine-grained error locations in tracebacks ¶ Macros converted to static inline functions Py_UNICODE encoder APIs have been removed Many legacy standard library modules have been deprecated and will be removed in Python 3.13 Important deprecations, removals and restrictions: PEP 655: Marking individual TypedDict items as required or not-required Variable to disable automatically prepending potentially unsafe paths to sys.path New -P command line option and PYTHONSAFEPATH environment PEP 657: Fine-grained error locations in tracebacks Support for parsing TOML in the Standard Library PEP 678: Exceptions can be enriched with notes On average, we measured a 1.25x speedup on the standard benchmark suite. Python 3.11 is between 10-60% faster than Python 3.10. This article explains the new features in Python 3.11, compared to 3.10.įor full details, see the changelog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |