This made me think more carefully about edge cases in my code.
@bbelderbos I gained a lot from C++ library design, especially the STL (the design, not the implementation!)
So much goes into designing truly generic containers and algorithms, deciding what's a method, what's a free function, what your interfaces look like, and what doesn't belong in the type at all...
Python implementations are naturally entirely different, but the principles still apply.