python/cpython

python/cpython has 1,634,582 source lines of code out of 2,184,230 total lines across 3,376 files, counted from the main ref at commit 5503a5e09977 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

As of 2026-10-21 (commit 5503a5e09977), python/cpython contains 2,184,230 total lines: 1,634,582 code, 240,769 comments, 308,879 blank, across 3,376 files in 36 languages (top: C 31.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-21 (commit 5503a5e09977), python/cpython contains 2,184,230 total lines: 1,634,582 code, 240,769 comments, 308,879 blank, across 3,376 files in 36 languages (top: C 31.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving python/cpython to commit 5503a5e09977, 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 74.8% of all lines, comments represent 11.0%, and the repository averages 484 code lines per file. C accounts for 31.0% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C4836546445062408324065164
ReStructuredText8025292403760610153179
Python10394320863498613189950326
C Header6483842083324501887132887
XML6131375312941863
Visual Studio Project5478297782938
Autoconf167061437714091275
TOML941353691183261
JavaScript1644273531376520
HTML183709346455190
CSS740463216247583
JSON143125312203

Top language (C 31.0%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does python/cpython have?

python/cpython has 2,184,230 total lines, including 1,634,582 code lines, 240,769 comment lines, and 308,879 blank lines.

How was the python/cpython line count measured?

OctoCounts resolved the public GitHub repository to commit 5503a5e09977, 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 5503a5e09977 on 2026-10-21T03:46:21.410482689+00:00.

Similar repository reports

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,634,582 code lines across 12 languages, counted by tokei.