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/2002-June/025246.html below:

[Python-Dev] Null checking

[Python-Dev] Null checking [Python-Dev] Null checkingGuido van Rossum guido@python.org
Mon, 10 Jun 2002 09:41:47 -0400
> I'd also like to know why all the (for instance) methods in
> tupleobject.c start with "if (!PyTuple_Check(self)".  You'd have to
> try REALLY hard to get those tests to fail...

I found exactly one call to PyTuple_Check() that satisfies that
description, and it was in your own (uncommitted) addition,
tuplesubscript(). :-)

Note that the PyXxx_Check() macros do *not* check for a NULL pointer
and crash hard if you pass them one.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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