• Raymond Hettinger's avatar
    Multiple clean-ups to the docs for builtin functions. · 690d4ae8
    Raymond Hettinger yazdı
    * Use concrete example for dir() and eliminate the distracting doctest directives.
    * Add a pure python equivalent for enumerate()
    * Modify the enumerate() example to demonstrate the start argument
    * Remove incorrect reference the *iterable* in the enumerate() docs.
    * Downgrade the comments on input() from a warning to a note.
    * Fix the iter() example to use the empty string as the terminating
      condition for file.readline().  Also, the old example was broken
      because readline() results include a newline, so 'STOP\n' would have
      been the correct terminating condition.  Even with that fix, the
      STOP example was fragile and would have lead to infinite loops with
      malformed inputs.
    * Do not refer to classmethod as being "more advanced" than staticmethod.
    690d4ae8
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...
.bzrignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README 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...