Python 3.15 is now out! 🐍🎉 My favorite new features include: • UTF-8 default f...

@treyhunner@mastodon.social

Python 3.15 is now out! 🐍🎉

My favorite new features include:

• UTF-8 default file encoding everywhere (less buggy cross-platform reads/writes!)
• a new sampling profiler with nearly no overhead
• explicit lazy imports: lazy import json
• unpacking in comprehensions: [*sub for sub in nested]
• a built-in sentinel type
• frozendict
• pprint(data, expand=True)
• re.prefixmatch
• more helpful error messages & more color

A short demo of all my favorites:
youtu.be/OD0QObnCZmA

#Python #Python315