[Subversion] / PEAK / src / peak / binding / getdict.c |
No default branch
Bookmark a link to HEAD:
(view)
(download)
Drop another module from initial load requirements, by using the Python/C API for 'threads.get_ident()' instead of importing a Python version from 'peak.util.threads'. (This may also slightly speed up the initial computation of attribute bindings, but it's unlikely to be measurable.)
Fixed C implementation of Once to work properly with "classic" classes.
Completed conversion to C of the base class descriptor methods for 'Once' attributes. Due to constraints in how Pyrex creates extension types, it was not possible to continue support for the (deprecated anyway) 'OnceClass' and 'AutoCreatable' metaclasses. This is now cleaned up pretty decently and runs the tests at least as fast as before I began the metadata refactoring yesterday (~4.1 seconds on my Windows PC). Note that if you want to build from Pyrex source or have Pyrex installed, you *must* patch Pyrex.Compiler.TypeSlots so that these two lines: descrgetfunc = Signature("TOO", "O") # typedef ... descrsetfunc = Signature("TOO", "O") # typedef ... Look like *this* instead: descrgetfunc = Signature("Tpp", "O") # typedef ... descrsetfunc = Signature("TOp", "i") # typedef ... This is a work-around for improper generation of descriptor __get__/__set__ code by Pyrex.
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |