Staging
v0.5.1
https://github.com/python/cpython
Revision 7ab6be216af6fccae655bd5402ae0ad22447f37a authored by Mark Dickinson on 15 April 2008, 21:42:42 UTC, committed by Mark Dickinson on 15 April 2008, 21:42:42 UTC
rewrite it so that it doesn't care about relative sizes of size_t,
long and long long.

The rewrite is modeled on PyLong_FromLong, instead of using
PyLong_FromByteArray;  this makes the algorithm simpler and
more direct, and possibly also slightly faster.
1 parent 32dde22
History
Tip revision: 7ab6be216af6fccae655bd5402ae0ad22447f37a authored by Mark Dickinson on 15 April 2008, 21:42:42 UTC
PyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long);
Tip revision: 7ab6be2
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 570 bytes
.hgtags -rw-r--r-- 2.7 KB
INTBENCH -rw-r--r-- 941 bytes
LICENSE -rw-r--r-- 13.5 KB
Makefile.pre.in -rw-r--r-- 37.6 KB
README -rw-r--r-- 7.3 KB
RELNOTES -rw-r--r-- 2.7 KB
configure -rwxr-xr-x 645.7 KB
configure.in -rw-r--r-- 96.9 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 28.7 KB
runtests.sh -rwxr-xr-x 2.1 KB
setup.py -rw-r--r-- 70.3 KB

README

back to top