June 2017
Beginner to intermediate
274 pages
6h 49m
English
Now we are going to define a few of Python's normal magic methods, which will allow us to iterate over the values stored in our object and access them by indexing. For this, refer to the following code example:

The thing to notice in this code example is how little has changed from what we've be doing in a pure Python implementation. The only real differences are the type definitions we provided for every parameter and the local variable.
Read now
Unlock full access