• Nick Coghlan's avatar
    Issue #23722: improve __classcell__ compatibility · 19d24674
    Nick Coghlan yazdı
    Handling zero-argument super() in __init_subclass__ and
    __set_name__ involved moving __class__ initialisation to
    type.__new__. This requires cooperation from custom
    metaclasses to ensure that the new __classcell__ entry
    is passed along appropriately.
    
    The initial implementation of that change resulted in abruptly
    broken zero-argument super() support in metaclasses that didn't
    adhere to the new requirements (such as Django's metaclass for
    Model definitions).
    
    The updated approach adopted here instead emits a deprecation
    warning for those cases, and makes them work the same way they
    did in Python 3.5.
    
    This patch also improves the related class machinery documentation
    to cover these details and to include more reader-friendly
    cross-references and index entries.
    19d24674
Adı
Son kayıt (commit)
Son güncelleme
.github 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...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...