Author serhiy.storchaka
Recipients alex, brett.cannon, gregory.p.smith, santoso.wijaya, serhiy.storchaka
Date 2013-03-05.14:05:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362492344.07.0.318483218705.issue17343@psf.upfronthosting.co.za>
In-reply-to
Content
> There is no string view that I know of. Interesting idea, though, thanks to the immutability of strings. Would much have to be different other than boundary checking and __hash__ (and hoping extension authors are changing things in-place)?

Objects/stringlib/unicode_format.h contains internal structure SubString which can be taken as a basis. But it is unlikely that it will be useful. All API which accept strings will require converting substring views to regular strings. And substring object can consume more memory than full string. This looks like a step backwards from PEP 393.
History
Date User Action Args
2013-03-05 14:05:44serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, gregory.p.smith, alex, santoso.wijaya
2013-03-05 14:05:44serhiy.storchakasetmessageid: <1362492344.07.0.318483218705.issue17343@psf.upfronthosting.co.za>
2013-03-05 14:05:44serhiy.storchakalinkissue17343 messages
2013-03-05 14:05:43serhiy.storchakacreate