[Python-ideas] Why don't CPython strings implement slicing using a view?

Neil Girdhar mistersheik at gmail.com
Thu May 7 04:05:15 CEST 2015


Since strings are constant, wouldn't it be much faster to implement string 
slices as a view of other strings?

For clarity, I'm talking about CPython.  I'm not talking about anything the 
user sees.  The string views would still look like regular str instances to 
the user.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150506/8aedccbd/attachment.html>


More information about the Python-ideas mailing list