Guido van Rossum wrote: > > > E.g. say Unicode gets interned someday, then resize will > > need to watch out not resizing a Unicode object which is > > already stored in the interning dict. > > Note that string objects deal with this by requiring that the > reference count is 1 when a string is resized. This effectively > enforces that resizes are only used when the original creator is still > working on the string. Nice trick ;-) The new PyUnicode_Resize() will have the same interface as _PyString_Resize() since this seems to be the most flexible way to implement it without giving away possibilities for future optimizations... -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4