As of 2026-09-07 (commit 09117bc3173b), python/cpython contains 2,166,256 total lines: 1,625,329 code, 237,769 comments, 303,158 blank, across 4,038 files in 36 languages (top: C 31.3%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving python/cpython to commit 09117bc3173b, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 75.0% of all lines, comments represent 11.0%, and the repository averages 403 code lines per file. C accounts for 31.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 479 | 654247 | 508326 | 81310 | 64611 |
| ReStructuredText | 1486 | 517574 | 368052 | 0 | 149522 |
| Python | 1031 | 426584 | 345273 | 31455 | 49856 |
| C Header | 641 | 384811 | 334111 | 18669 | 32031 |
| XML | 61 | 31375 | 31294 | 18 | 63 |
| Visual Studio Project | 54 | 7810 | 7764 | 8 | 38 |
| Autoconf | 16 | 7048 | 4373 | 1404 | 1271 |
| TOML | 9 | 3976 | 3582 | 165 | 229 |
| JavaScript | 16 | 4427 | 3531 | 376 | 520 |
| HTML | 18 | 3533 | 3293 | 53 | 187 |
| CSS | 7 | 4046 | 3216 | 247 | 583 |
| JSON | 14 | 3104 | 3101 | 0 | 3 |
Top language (C 31.3%). Generated at 2026-09-07T08:24:05.485202687+00:00.
python/cpython has 2,166,256 total lines, including 1,625,329 code lines, 237,769 comment lines, and 303,158 blank lines.
OctoCounts resolved the public GitHub repository to commit 09117bc3173b, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 09117bc3173b on 2026-09-07T08:24:05.485202687+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: