Skip to main content
py.stuartsm
Menu
โฐ
Home
Learn
Reference
Glossary
Projects
Search
About
Toggle dark theme
๐
Reference
Protocols
Protocols
Dunder methods and the interfaces they implement.
__repr__ and __eq__
The dunder methods that let an object control how it prints for debugging and how it compares for equality with ==.
Context Manager
An object usable with with that guarantees its setup and cleanup code run together โ even if an exception happens in between.