Vladimir

37%
Flag icon
To make Vector2d work with positional patterns, we need to add a class attribute named __match_args__ , listing the instance attributes in the order they will be used for positional pattern matching:
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview