[Python-Dev] Caching function pointers in type objects (original) (raw)
Daniel Stutzbach daniel at stutzbachenterprises.com
Wed Mar 3 03:54:20 CET 2010
- Previous message: [Python-Dev] Deprecation warnings in Python 2.7
- Next message: [Python-Dev] Caching function pointers in type objects
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20100302/d4bb381b/attachment.html>
- Previous message: [Python-Dev] Deprecation warnings in Python 2.7
- Next message: [Python-Dev] Caching function pointers in type objects
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]