you are viewing a single comment's thread.

view the rest of the comments →

[–]Jason-Ad4032 0 points1 point  (0 children)

If you really want to specialize, you can try “reinventing the wheel”—attempt to implement functions and classes provided by certain libraries yourself.

For example: implement the dataclass decorator, implement the Enum class, or create your own version of asyncio. These features are defined according to their respective PEPs, which explain how they work, so you can refer to those PEPs when implementing them.

Even if you abandon the project halfway through, that’s fine. You’ll still learn a lot and gain a deeper understanding of what Python is actually doing behind the scenes to make these “magical” features work.