[Python-Dev] Interest in integrating C decimal module into Python?
Mark Dickinson
dickinsm at gmail.com
Wed Oct 21 17:28:50 CEST 2009
On Wed, Oct 21, 2009 at 4:05 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Mark Dickinson <dickinsm <at> gmail.com> writes:
>> BTW, does anyone know the current SLOC count for py3k?
>
> Here you are, generated using David A. Wheeler's 'SLOCCount':
> [...]
Thanks, Antoine! With SLOCCount I can revise my earlier numbers, as well:
Here's Stefan Krah's mpdecimal, version 0.80:
SLOC Directory SLOC-by-Language (Sorted)
21445 top_dir ansic=21267,sh=105,python=55,asm=18
6238 python python=6177,java=43,sh=18
1403 tests ansic=1356,sh=47
476 literature lisp=476
274 cmd ansic=274
11 tools sh=11
0 doc (none)
Totals grouped by language (dominant language first):
ansic: 22897 (76.71%)
python: 6232 (20.88%)
lisp: 476 (1.59%)
sh: 181 (0.61%)
java: 43 (0.14%)
asm: 18 (0.06%)
Lib/decimal.py:
SLOC Directory SLOC-by-Language (Sorted)
2636 tmp python=2636
Totals grouped by language (dominant language first):
python: 2636 (100.00%)
So it looks like 2636 lines of Python versus 21000-ish
lines of C.
Mark
More information about the Python-Dev
mailing list