Vladimir

1%
Flag icon
The __repr__ special method is called by the repr built-in to get the string representation of the object for inspection. Without a custom __repr__, Python’s console would display a Vector instance <Vector object at 0x10e100070>.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview