• Tim Peters's avatar
    Make dictionary() a real constructor. Accepts at most one argument, "a · 25786c08
    Tim Peters yazdı
    mapping object", in the same sense dict.update(x) requires of x (that x
    has a keys() method and a getitem).
    Questionable:  The other type constructors accept a keyword argument, so I
    did that here too (e.g., dictionary(mapping={1:2}) works).  But type_call
    doesn't pass the keyword args to the tp_new slot (it passes NULL), it only
    passes them to the tp_init slot, so getting at them required adding a
    tp_init slot to dicts.  Looks like that makes the normal case (i.e., no
    args at all) a little slower (the time it takes to call dict.tp_init and
    have it figure out there's nothing to do).
    25786c08
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...