diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-24 15:02:35 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-24 15:02:35 (GMT) |
commit | d4624c3331a54506b9c678ad096e56366b66f51d (patch) | |
tree | b503cc038d47e1f1fbb565f0987d74a970bcf42b /Lib/pydoc.py | |
parent | 59e4779abc25626cb0ab9fa24ccb3223a00db143 (diff) | |
download | cpython-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