summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-24 15:02:35 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-24 15:02:35 (GMT)
commitd4624c3331a54506b9c678ad096e56366b66f51d (patch)
treeb503cc038d47e1f1fbb565f0987d74a970bcf42b /Lib/pydoc.py
parent59e4779abc25626cb0ab9fa24ccb3223a00db143 (diff)
downloadcpython-d4624c3331a54506b9c678ad096e56366b66f51d.zip
cpython-d4624c3331a54506b9c678ad096e56366b66f51d.tar.gz
cpython-d4624c3331a54506b9c678ad096e56366b66f51d.tar.bz2
Some minor cleanups in PyLong_FromLong:
- fast path wasn't being properly taken for negative ints; thanks Victor Stinner for pointing this out. - use Py_SAFE_DOWNCAST instead of direct casting to digit (it's safer, especially if we ever consider moving to 30-bit digits) - cleaner way to write negation
Diffstat (limited to 'Lib/pydoc.py')
0 files changed, 0 insertions, 0 deletions