• Tim Peters's avatar
    _PyObject_VAR_SIZE: always round up to a multiple-of-pointer-size value. · 6d483d34
    Tim Peters yazdı
    As Guido suggested, this makes the new subclassing code substantially
    simpler.  But the mechanics of doing it w/ C macro semantics are a mess,
    and _PyObject_VAR_SIZE has a new calling sequence now.
    
    Question:  The PyObject_NEW_VAR macro appears to be part of the public API.
    Regardless of what it expands to, the notion that it has to round up the
    memory it allocates is new, and extensions containing the old
    PyObject_NEW_VAR macro expansion (which was embedded in the
    PyObject_NEW_VAR expansion) won't do this rounding.  But the rounding
    isn't actually *needed* except for new-style instances with dict pointers
    after a variable-length blob of embedded data.  So my guess is that we do
    not need to bump the API version for this (as the rounding isn't needed
    for anything an extension can do unless it's recompiled anyway).  What's
    your guess?
    6d483d34
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...