Python2.7 uses protocol 1 by default, which is not compatible with class defining __slots__. On the other hand, all the Python versions support versions >= 2.