มาใหม่! Python 3.11 เร็วขึ้นกว่าเดิมถึง 25% แจ้งจุดผิดพลาดได้ละเอียดและชัดเจนขึ้น บอกเลยคนเขียน Python ห้ามพลาด!!
![📌](https://static.xx.fbcdn.net/images/emoji.php/v9/tac/1/16/1f4cc.png)
![🔥](https://static.xx.fbcdn.net/images/emoji.php/v9/t50/1/16/1f525.png)
.
![📍](https://static.xx.fbcdn.net/images/emoji.php/v9/t2d/1/16/1f4cd.png)
.
![⚡️](https://static.xx.fbcdn.net/images/emoji.php/v9/t5d/1/16/26a1.png)
![⚡️](https://static.xx.fbcdn.net/images/emoji.php/v9/t5d/1/16/26a1.png)
Python 3.11 เร็วขึ้นกว่ารุ่น Python 3.10 ราวๆ 10-60% จากการวัดผลโดยรวมบน The standard benchmark suite ได้ผล Speed Up เร็วขึ้นถึง 25% ตามโปรเจค Faster CPython ที่พยายามปรับปรุงความเร็วของ Python ให้ดียิ่งขึ้น
.
![🔸](https://static.xx.fbcdn.net/images/emoji.php/v9/t72/1/16/1f538.png)
– PEP 657: แสดงจุดผิดพลาดอย่างละเอียดแบบ “ชี้ตัวอักษร” จากปกติที่จะแสดง Error ว่าเป็นที่บรรทัดเท่าไหร่ ซึ่งรุ่นนี้จะระบุชัดเจนเลยว่า Statement ไหนที่ทำให้ Exception throw ออกมา
.
![🔹](https://static.xx.fbcdn.net/images/emoji.php/v9/tf3/1/16/1f539.png)
– PEP 678 : สามารถ Add Note เข้าไปใน Exception ที่ Throw ออกมา เพื่ออธิบายข้อผิดพลาดที่เกิดขึ้น (Error) ในแต่ละอันได้ โดย Note จะไปแสดงที่ Exception Traceback ซึ่งฟีเจอร์นี้เข้ามาช่วยให้เราสามารถดู Error ใน Exception Group ได้ง่ายขึ้นนั่นเอง
.
![🔸](https://static.xx.fbcdn.net/images/emoji.php/v9/t72/1/16/1f538.png)
– PEP 654 : แสดงจุดผิดพลาด Exception Groups and except* ได้พร้อมกันทีละหลายๆ Exception โดยจะใช้งาน Features นี้ในกรณีที่การประมวลผลมีความผิดพลาดหลายอย่าง
.
![🔹](https://static.xx.fbcdn.net/images/emoji.php/v9/tf3/1/16/1f539.png)
– PEP 680 : รองรับไฟล์ Config รูปแบบ TOML ใน Standard Library ได้แล้ว
.
![🔸](https://static.xx.fbcdn.net/images/emoji.php/v9/t72/1/16/1f538.png)
ปรับปรุงระบบการกำหนด Type ของตัวแปรหลายส่วน ดังนี้
– PEP 646: Variadic generics
– PEP 655: Marking individual TypedDict items as required or not-required
– PEP 673: Self type
– PEP 675: Arbitrary literal string type
– PEP 681: Data class transforms
ตัวอย่างเช่น การประกาศตัวแปรชนิด Self สำหรับการคืนค่าเป็นตัวแปรชนิดเดียวกัน หรือการกำหนด fields ที่จำเป็นใน TypedDict
.
![🔹](https://static.xx.fbcdn.net/images/emoji.php/v9/tf3/1/16/1f539.png)
– GH-34627 รองรับการกำหนดกลุ่มแบบ Atomic Grouping ((?>…)) และ Possessive Quantifiers (*+, ++, ?+, {m,n}+) ใน Regular Expression แล้ว
.
ไหนใครลองใช้รุ่นนี้กันแล้วบ้างงงง
ชอบไม่ชอบยังไงมาเล่าสู่กันฟังหน่อยยยย![🤨](https://static.xx.fbcdn.net/images/emoji.php/v9/td7/1/16/1f928.png)
![🤔](https://static.xx.fbcdn.net/images/emoji.php/v9/t34/1/16/1f914.png)
![🤩](https://static.xx.fbcdn.net/images/emoji.php/v9/t58/1/16/1f929.png)
![🤨](https://static.xx.fbcdn.net/images/emoji.php/v9/td7/1/16/1f928.png)
![🤔](https://static.xx.fbcdn.net/images/emoji.php/v9/t34/1/16/1f914.png)
.
.
.
สนใจบริการ Hosting คุณภาพดีดี
ติดต่อได้ที่ :
![✅](https://static.xx.fbcdn.net/images/emoji.php/v9/t33/1/16/2705.png)
![✅](https://static.xx.fbcdn.net/images/emoji.php/v9/t33/1/16/2705.png)
![🔹](https://static.xx.fbcdn.net/images/emoji.php/v9/tf3/1/16/1f539.png)
![🔸](https://static.xx.fbcdn.net/images/emoji.php/v9/t72/1/16/1f538.png)
![✅](https://static.xx.fbcdn.net/images/emoji.php/v9/t33/1/16/2705.png)
![✅](https://static.xx.fbcdn.net/images/emoji.php/v9/t33/1/16/2705.png)
.
Hosting Lotus ยินดีให้บริการค่ะ ![💖](https://static.xx.fbcdn.net/images/emoji.php/v9/te9/1/16/1f496.png)
![💖](https://static.xx.fbcdn.net/images/emoji.php/v9/te9/1/16/1f496.png)