[Python-Dev] String views
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Sep 1 06:00:30 CEST 2005
More information about the Python-Dev mailing list
Thu Sep 1 06:00:30 CEST 2005
- Previous message: [Python-Dev] String views (was: Re: Proof of the pudding: str.partition())
- Next message: [Python-Dev] String views
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote: > Ah, I forgot the data is part of the PyString object itself, not stored as a > separate char* array. Without a char* in the object it's kind of hard to do > views. That wouldn't be a problem if substrings were a separate subclass of basestring with their own representation. That's probably a good idea anyway, since you wouldn't want slicing to return substrings by default -- it should be something you have to explicitly ask for. Greg
- Previous message: [Python-Dev] String views (was: Re: Proof of the pudding: str.partition())
- Next message: [Python-Dev] String views
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list