6 Oct
2012
6 Oct
'12
6:39 p.m.
Georg Brandl wrote:
If you inherit from str, you cannot override any of the operations that str already has (i.e. __add__, __getitem__).
Is this a 3.x thing? My 2.x version of Path overrides many of the str methods and works just fine.
And obviously you also can't make it mutable, i.e. __setitem__.
Well, since Paths (both Antoine's and mine) are immutable that's not an issue. ~Ethan~