python/cpython

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.

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 486 code lines per file. C accounts for 31.1% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C4916661655149238521766025
ReStructuredText7475363783812080155170
Python10394353963525693228250545
C Header6633875563350231915933374
XML6131375312941863
Visual Studio Project5478377790938
Autoconf197199452314111265
TOML941553712183260
JavaScript1744723563382527
HTML183709346455190
CSS740463216247583
JSON173174317103
Visual Studio Solution11756175600
Batch25146112227232
SVG1410721010584
Objective-C191214892137185
Shell681346848336162
MSBuild10103182211990
Module-Definition4568546022
C++26835455682
Kotlin55774446271
M4179440832066
Makefile34983794673
INI82851715559
Bitbake21621341810
GNU Style Assembly314513195
PowerShell225011010634
YAML210890711
Fish175451713
TypeScript2413506
D1221912
C Shell12914510
CMake1141013
Forge Config110901
Markdown428070062111859
Plain Text43985580970671491

Top language: C 31.1%. Generated on .

Counting rules and retention

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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does python/cpython have?

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.

How was the python/cpython line count measured?

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.

What commit was counted for python/cpython?

This OctoCounts report was generated from main at commit 585755d87aa5 on November 16, 2026.

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,654,096 code lines across 36 languages, counted by tokei.