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/2012-May/119213.html below:

[Python-Dev] [Python-checkins] cpython: Fix PyUnicode_Substring() for start >= length and start

[Python-Dev] [Python-checkins] cpython: Fix PyUnicode_Substring() for start >= length and start > end [Python-Dev] [Python-checkins] cpython: Fix PyUnicode_Substring() for start >= length and start > endVictor Stinner victor.stinner at gmail.com
Thu May 3 03:38:33 CEST 2012
>> +    if (start >= length || end < start) {
>> +        assert(end == length);
>> +        return PyUnicode_New(0, 0);
>> +    }
>
> That assert doesn't look right.

Oh, you're right. I added it for the first case: start>=length. But
the assertion is really useless, I removed it. Thanks!

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