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

2011-10-04 Thread Georg Brandl
On 10/03/11 23:35, victor.stinner wrote: http://hg.python.org/cpython/rev/bfd8b5d35f9c changeset: 72623:bfd8b5d35f9c user:Victor Stinner victor.stin...@haypocalc.com date:Mon Oct 03 23:36:02 2011 +0200 summary: PyUnicode_Join() checks output length in debug mode

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

2011-10-04 Thread Victor Stinner
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