While you're investigating the collections module, look at inheriting from Sequence, Mapping or A different abstract foundation course if that is far more ideal. Here is an instance for your Sequence subclass: it is straightforward to see where the self suits in. You don't essentially generate instance strategies in Python; https://trevorsiwky.blogunok.com/37623296/facts-about-accessory-boxes-revealed