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/2003-October/038608.html below:

[Python-checkins] python/dist/src/Objects typeobject.c, 2.244, 2.245

[Python-Dev] RE: [Python-checkins] python/dist/src/Objects typeobject.c, 2.244, 2.245Martin v. Löwis martin at v.loewis.de
Thu Oct 9 00:40:30 EDT 2003
Guido van Rossum <guido at python.org> writes:

> Maybe PyBool_FromLong() itself could make this unneeded by adding
> something like
> 
>     if (ok < 0 && PyErr_Occurred())
>         return NULL;
> 
> to its start?

That would an incompatible change. I would expect PyBool_FromLong(i)
do the same thing as bool(i).

> Maybe a pair of macros Py_return_True and Py_return_False would make
> sense?

You should, of course, add Py_return_None to it, as well.

Then you will find that some contributor goes on a crusade to use
these throughout very quickly :-)

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