commit | f21c6be7bd41609a4bc11f6a900da01f70be3258 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Sep 14 17:51:50 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Sep 14 17:51:50 2001 +0000 |
tree | f868bf3aac2ef6b09195cd24c41e88d594c3187f | |
parent | f2a5f3f721cc13624ee65b97890525c0a358cb9b [diff] |
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).