• Guido van Rossum's avatar
    Another optimization, probably of negligeable effect: instead of · 0132f69c
    Guido van Rossum yazdı
    calling self.tk.getint() and self.tk.getdouble(), call the globals
    getint() and getdouble(), which in turn are just names for the Python
    builtins int() and double().  (Making them globals actually save a
    dict lookup compared to using the built-in.)  The corresponding
    methods of class Misc have been changed similarly.  (Note that
    getboolean() hasn't been changed because there's no Python
    equivalent.)
    
    The use of int() and float() has another advantage: if/when Tcl calls
    can actually return Tcl objects with other types than string, use of
    int() and float() is essential.
    0132f69c
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...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...