What are slot wrapper objects?I got curious about what 'slot wrapper' objects are after I encountered them in FindingMethodProviderII, so I went digging in the CPython source. It turns out that the answer requires understanding the internal structure of CPython. Python types written in C start with a big structure that defines
various details about them, including a large number of pointers to
functions that implement various basic operations such as deallocating
objects of this type, getting and setting attributes, comparison, and
so on. Many but not all of these correspond to Python level canonical
methods like As a service, the CPython core that registers a new type automatically
creates a The one exception to this is |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |