python/cpython SLOC report

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.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C4796542475083268131064611
ReStructuredText14865175743680520149522
Python10314265843452733145549856
C Header6413848113341111866932031
XML6131375312941863
Visual Studio Project5478107764838
Autoconf167048437314041271
TOML939763582165229
JavaScript1644273531376520
HTML183533329353187
CSS740463216247583
JSON143104310103

Top language (C 31.3%). Generated at 2026-09-07T08:24:05.485202687+00:00.

Report FAQ

How many lines of code does python/cpython have?

python/cpython has 2,166,256 total lines, including 1,625,329 code lines, 237,769 comment lines, and 303,158 blank lines.

How was the python/cpython line count measured?

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.

What commit was counted for python/cpython?

This OctoCounts report was generated from main at commit 09117bc3173b on 2026-09-07T08:24:05.485202687+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: