- अधिक लचीला f-string parsing (PEP 701)
- Python कोड में buffer protocol support (PEP 688)
- नया debugging/profiling API (PEP 669)
- Per-Interpreter GIL support के साथ हर Sub-interpreter के लिए अलग GIL बनाया जाता है (PEP 684)
- error messages में सुधार किया गया है, और टाइपो के कारण होने वाले अधिक exceptions के लिए अब उपयोगकर्ता को सुझाव दिए जाते हैं
- Linux perf profiler support, जिससे trace में Python function names शामिल होते हैं
- छोटे-बड़े performance improvements के कारण कुल मिलाकर 5% performance improvement
- सामान्य classes के लिए नया type annotation syntax (PEP 695) और methods के लिए नया override decorator (PEP 698) पेश किया गया
- Unicode objects के C implementation से
wstr और wstr_length members, unittest module की कुछ methods और classes, तथा smtpd और distutils modules जैसे deprecated features हटा दिए गए
- strings में गलत backslash escape sequences पर अब DeprecationWarning की जगह SyntaxWarning चेतावनी दी जाती है
- performance improvements की तैयारी के लिए integers की internal representation बदली गई
3 टिप्पणियां
Per-Interpreter GIL काफ़ी दिलचस्प लग रहा है।
What’s New In Python 3.12
Hacker News की राय
itertools.batchedशामिल है, जो एक स्वागतयोग्य जोड़ हैsmtpdऔरdistutilsmodules शामिल हैं, और performance improvements की तैयारी के लिए integers का internal representation बदला गया है