]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add call_maybe(): a variant of call_method() that returns
authorGuido van Rossum <guido@python.org>
Fri, 14 Sep 2001 17:51:50 +0000 (17:51 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Sep 2001 17:51:50 +0000 (17:51 +0000)
commitf21c6be7bd41609a4bc11f6a900da01f70be3258
treef868bf3aac2ef6b09195cd24c41e88d594c3187f
parentf2a5f3f721cc13624ee65b97890525c0a358cb9b
Add call_maybe(): a variant of call_method() that returns
NotImplemented when the lookup fails, and use this for binary
operators.  Also lookup_maybe() which doesn't raise an exception when
the lookup fails (still returning NULL).
Objects/typeobject.c