Vladimir

36%
Flag icon
classmethod changes the way the method is called, so it receives the class itself as the first argument, instead of an instance. Its most common use is for alternative constructors, like frombytes
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview