• Tim Peters's avatar
    SF bug [#472347] pydoc and properties. · 8dd7adeb
    Tim Peters yazdı
    The GUI-mode code to display properties blew up if the property functions
    (get, set, etc) weren't simply methods (or functions).
    
    "The problem" here is really that the generic document() method dispatches
    to one of .doc{routine, class, module, other}(), but all of those require
    a different(!) number of arguments.  Thus document isn't general-purpose
    at all:  you have to know exactly what kind of thing is it you're going
    to document first, in order to pass the correct number of arguments to
    .document for it to pass on.  As an expedient hack, just tacked "*ignored"
    on to the end of the formal argument lists for the .docXXX routines so
    that .document's caller doesn't have to know in advance which path
    .document is going to take.
    8dd7adeb
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...