[Python-ideas] PEP 428 - object-oriented filesystem paths
ethan at stoneleaf.us
Sat Oct 6 20:39:17 CEST 2012
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
More information about the Python-ideas