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.

python/cpython: 1,634,582 code lines at commit 5503a5e09977, counted with tokei-14.0.0 on 2026-10-21. Saved result 992f155686b7eb633f726bea050824f518986a29b8d9780236ceda483995041f.

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
Visual Studio Solution11756175600
Batch25146112227232
SVG1410721010584
MSBuild10103182211990
Objective-C111055809102144
Shell271244793292159
Module-Definition4568546022
C++26835455682
Kotlin55774446271
M4179440832066
Makefile34973784673
INI82851715559
Bitbake21621341810
GNU Style Assembly313412365
PowerShell225011010634
YAML210890711
Fish175451713
TypeScript2413506
D1221912
C Shell12914510
CMake1141013
Forge Config110901
Markdown397853060501803
Plain Text43986240971341490

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.410482689Z.

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 36 languages, counted by tokei.