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/2011-October/113850.html below:

[Python-Dev] cpython: PyUnicode_Join() checks output length in debug mode

[Python-Dev] cpython: PyUnicode_Join() checks output length in debug mode [Python-Dev] cpython: PyUnicode_Join() checks output length in debug modeVictor Stinner victor.stinner at haypocalc.com
Wed Oct 5 00:31:27 CEST 2011
Le 04/10/2011 23:41, Georg Brandl a écrit :
> I don't understand this change. Why would you not always add "copied" once you
> already have it? It seems to be the more correct version anyway.

If you use copied instead of seplen/itemlen, you suppose that the string 
has been overallocated in some cases, and that you have to resize the 
string (in-place or, more probably, with a copy).

Victor
More information about the Python-Dev mailing list

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