7 पॉइंट द्वारा GN⁺ 2023-10-03 | 3 टिप्पणियां | WhatsApp पर शेयर करें
  • अधिक लचीला 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 टिप्पणियां

 
cosine20 2023-10-04

Per-Interpreter GIL काफ़ी दिलचस्प लग रहा है।

 
GN⁺ 2023-10-03
Hacker News की राय
  • Python 3.12 में kwargs type declarations के लिए नया syntax जोड़ा गया है, और लाइब्रेरी के लिए आवश्यक डेटा को समझना बेहतर हुआ है
  • नए वर्ज़न में iterable को chunks में बाँटने के लिए itertools.batched शामिल है, जो एक स्वागतयोग्य जोड़ है
  • Python 3.12 में profiler, debugger और अन्य tools के लिए CPython events को monitor करने हेतु नया API जोड़ा गया है, जिससे लगभग zero-overhead debugger और coverage tools संभव हो सकते हैं
  • Python 3.12 की नई सुविधाओं में अधिक flexible f-string parsing, Python code में buffer protocol support, नया debugging/profiling API, और अलग-अलग Global Interpreter Locks वाले isolated sub-interpreters का समर्थन शामिल है
  • इस अपडेट में बेहतर error messages, Linux perf profiler द्वारा trace में Python function names दिखाने का समर्थन, और कई छोटे-बड़े performance improvements भी शामिल हैं
  • generic classes के लिए नया type annotation syntax और methods के लिए नया override decorator भी इस अपडेट का हिस्सा हैं
  • deprecated features को हटाया गया है, जिनमें smtpd और distutils modules शामिल हैं, और performance improvements की तैयारी के लिए integers का internal representation बदला गया है
  • उपयोगकर्ताओं ने बेहतर error messages के लिए आभार जताया है, और debugging को आसान बनाने के लिए वास्तविक rich text की शुरुआत की इच्छा जताई है
  • अलग-अलग Global Interpreter Locks वाले isolated sub-interpreters का समर्थन किसी न किसी रूप में concurrency उपलब्ध कराने की दिशा में एक महत्वपूर्ण कदम माना जा रहा है
  • Python 3.12 ने compute-intensive workloads में उल्लेखनीय performance improvements दिखाए हैं
  • उपयोगकर्ता CPython event monitoring के लिए नए API, PEP 669, का सर्वोत्तम उपयोग कैसे किया जाए इसमें रुचि रखते हैं