2010/3/2 Daniel Stutzbach <daniel at stutzbachenterprises.com>: > In CPython, is it safe to cache function pointers that are in type objects? > > For example, if I know that some_type->tp_richcompare is non-NULL, and I > call it (which may execute arbitrary user code), can I assume that > some_type->tp_richcompare is still non-NULL? Not unless it's builtin. Somebody could have deleted the rich comparison methods. -- Regards, Benjamin
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