[Python-ideas] PEP 428 - object-oriented filesystem paths
Ethan Furman
ethan at stoneleaf.us
Sat Oct 6 20:39:17 CEST 2012
More information about the Python-ideas mailing list
Sat Oct 6 20:39:17 CEST 2012
- Previous message: [Python-ideas] PEP 428 - object-oriented filesystem paths
- Next message: [Python-ideas] PEP 428 - object-oriented filesystem paths
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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~
- Previous message: [Python-ideas] PEP 428 - object-oriented filesystem paths
- Next message: [Python-ideas] PEP 428 - object-oriented filesystem paths
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list