Home / Companies / Pybites / Blog / Post Details
Content Deep Dive

Finding new and removed Python 3.11 modules in 8 lines of code

Blog post from Pybites

Post Details
Company
Date Published
Author
Bob Belderbos
Word Count
324
Language
English
Hacker News Points
-
Summary

A member of the Pybites Slack community shared an exploration of Python's sys.stdlib_module_names, a frozenset containing standard library module names, to identify changes between Python 3.10 and 3.11. By using the pickle module, the user compared the module names across versions, discovering the addition of 'tomllib' and the removal of 'binhex'. The exercise highlighted the importance of sharing insights with fellow Python enthusiasts, setting personal learning challenges, and leveraging previously acquired knowledge, though it noted the security risks associated with using pickle. The post encourages community engagement by inviting others to share their Python explorations in the TIL Slack channel.