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/113831.html below:

[Python-Dev] [Python-checkins] cpython: Migrate str.expandtabs to the new API

[Python-Dev] [Python-checkins] cpython: Migrate str.expandtabs to the new API [Python-Dev] [Python-checkins] cpython: Migrate str.expandtabs to the new API"Martin v. Löwis" martin at v.loewis.de
Tue Oct 4 18:45:55 CEST 2011
>    Migrate str.expandtabs to the new API

This needs

    if (PyUnicode_READY(self) == -1)
        return NULL;

right after the ParseTuple call. In most cases, the
check will be a noop. But if it's not, omitting it will
make expandtabs have no effect, since the string length
will be 0 (in a debug build, you also get an assertion
failure).

Regards,
Martin

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