python/cpython has 1,654,096 source lines of code out of 2,210,231 total lines across 3,403 files, counted with tokei from the main ref at commit 585755d87aa5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
python/cpython: 1,654,096 code lines at commit 585755d87aa5, counted with tokei-15.0.0 on 2026-11-16. Saved result 46b472f97c486169882b1e24311f365e33c34d256f938b2bca1fd324afdaf63b.
OctoCounts produced this report by resolving python/cpython to commit 585755d87aa5, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 74.8% of all lines, comments represent 11.0%, and the repository averages 486 code lines per file. C accounts for 31.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 491 | 666165 | 514923 | 85217 | 66025 |
| ReStructuredText | 747 | 536378 | 381208 | 0 | 155170 |
| Python | 1039 | 435396 | 352569 | 32282 | 50545 |
| C Header | 663 | 387556 | 335023 | 19159 | 33374 |
| XML | 61 | 31375 | 31294 | 18 | 63 |
| Visual Studio Project | 54 | 7837 | 7790 | 9 | 38 |
| Autoconf | 19 | 7199 | 4523 | 1411 | 1265 |
| TOML | 9 | 4155 | 3712 | 183 | 260 |
| JavaScript | 17 | 4472 | 3563 | 382 | 527 |
| HTML | 18 | 3709 | 3464 | 55 | 190 |
| CSS | 7 | 4046 | 3216 | 247 | 583 |
| JSON | 17 | 3174 | 3171 | 0 | 3 |
| Visual Studio Solution | 1 | 1756 | 1756 | 0 | 0 |
| Batch | 25 | 1461 | 1222 | 7 | 232 |
| SVG | 14 | 1072 | 1010 | 58 | 4 |
| Objective-C | 19 | 1214 | 892 | 137 | 185 |
| Shell | 68 | 1346 | 848 | 336 | 162 |
| MSBuild | 10 | 1031 | 822 | 119 | 90 |
| Module-Definition | 4 | 568 | 546 | 0 | 22 |
| C++ | 2 | 683 | 545 | 56 | 82 |
| Kotlin | 5 | 577 | 444 | 62 | 71 |
| M4 | 1 | 794 | 408 | 320 | 66 |
| Makefile | 3 | 498 | 379 | 46 | 73 |
| INI | 8 | 285 | 171 | 55 | 59 |
| Bitbake | 2 | 162 | 134 | 18 | 10 |
| GNU Style Assembly | 3 | 145 | 131 | 9 | 5 |
| PowerShell | 2 | 250 | 110 | 106 | 34 |
| YAML | 2 | 108 | 90 | 7 | 11 |
| Fish | 1 | 75 | 45 | 17 | 13 |
| TypeScript | 2 | 41 | 35 | 0 | 6 |
| D | 1 | 22 | 19 | 1 | 2 |
| C Shell | 1 | 29 | 14 | 5 | 10 |
| CMake | 1 | 14 | 10 | 1 | 3 |
| Forge Config | 1 | 10 | 9 | 0 | 1 |
| Markdown | 42 | 8070 | 0 | 6211 | 1859 |
| Plain Text | 43 | 98558 | 0 | 97067 | 1491 |
Top language: C 31.1%. Generated on .
python/cpython: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
python/cpython has 1,654,096 lines of code, plus 243,601 comment lines and 312,534 blank lines, for 2,210,231 total lines at commit 585755d87aa5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 585755d87aa5, 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 585755d87aa5 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for python/cpython on this page — 1,654,096 code lines across 36 languages, counted by tokei.