diff options
| author | Guido van Rossum <guido@python.org> | 1998-04-30 17:50:36 (GMT) | 
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1998-04-30 17:50:36 (GMT) | 
| commit | 0132f69c2ef8bcc49cf30c955ac5cc215eea50a0 (patch) | |
| tree | 82836107cbb22e9ebc820b578f716aec1ed9782d /Tools/scripts/ndiff.py | |
| parent | cc8e1a4ed743f66be763f9bb9f40539b2572bf5c (diff) | |
| download | cpython-0132f69c2ef8bcc49cf30c955ac5cc215eea50a0.zip cpython-0132f69c2ef8bcc49cf30c955ac5cc215eea50a0.tar.gz cpython-0132f69c2ef8bcc49cf30c955ac5cc215eea50a0.tar.bz2 | |
Another optimization, probably of negligeable effect: instead of
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.
Diffstat (limited to 'Tools/scripts/ndiff.py')
0 files changed, 0 insertions, 0 deletions
