A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003174.html below:

[Python-Dev] Re: _PyUnicode_New/PyUnicode_Resize

[Python-Dev] Re: _PyUnicode_New/PyUnicode_Resize [Python-Dev] Re: _PyUnicode_New/PyUnicode_ResizeM.-A. Lemburg mal@lemburg.com
Thu, 06 Apr 2000 10:50:47 +0200
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