From f57324aaec90c00bfe7d77ae3ab9aa883523e958 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 11 Mar 2026 17:10:58 +0000 Subject: [PATCH 1/2] Add viewing suggestion to source code growth post --- content/posts/cpython-codebase-growth/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/posts/cpython-codebase-growth/index.md b/content/posts/cpython-codebase-growth/index.md index bd66567..8c1ce2f 100644 --- a/content/posts/cpython-codebase-growth/index.md +++ b/content/posts/cpython-codebase-growth/index.md @@ -11,6 +11,8 @@ published: true --- ![Stacked area chart showing CPython's growth from a few lines in 1990 to 2.9 million lines in 2026, broken down by language](cpython_growth.svg) +(Try viewing the [image directly](https://blog.python.org/_astro/cpython_growth.CDpb_itO_ZomrED.svg) if you are unable to zoom in!) + While working on a patch and navigating through CPython, I got curious as to how the codebase has grown over the years. Using an interesting tool I found on the internet to *count lines of code* ([cloc](https://github.com/AlDanial/cloc)), some scripts, and some patience (thank goodness for multiple cores, or I’d be at this all day), I amassed a [1,392 commit dataset.](https://gist.github.com/StanFromIreland/bd33d5ee3c59c54cbe1f3bad2fbdb4e9) With that, and some Git spelunking for the annotations, I was able to generate the above graph. Many thanks to Tim and Ned for their help with this little project! I plan to tidy my scripts and upload them to a repository sometime in the near future. Please feel free to use my dataset :-) From bf5ce7a82de82d67f69debbac1fe4f272732217a Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 11 Mar 2026 17:28:22 +0000 Subject: [PATCH 2/2] Reword --- content/posts/cpython-codebase-growth/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/posts/cpython-codebase-growth/index.md b/content/posts/cpython-codebase-growth/index.md index 8c1ce2f..052bbe1 100644 --- a/content/posts/cpython-codebase-growth/index.md +++ b/content/posts/cpython-codebase-growth/index.md @@ -11,7 +11,7 @@ published: true --- ![Stacked area chart showing CPython's growth from a few lines in 1990 to 2.9 million lines in 2026, broken down by language](cpython_growth.svg) -(Try viewing the [image directly](https://blog.python.org/_astro/cpython_growth.CDpb_itO_ZomrED.svg) if you are unable to zoom in!) +([Click to zoom!](https://blog.python.org/_astro/cpython_growth.CDpb_itO_ZomrED.svg)) While working on a patch and navigating through CPython, I got curious as to how the codebase has grown over the years. Using an interesting tool I found on the internet to *count lines of code* ([cloc](https://github.com/AlDanial/cloc)), some scripts, and some patience (thank goodness for multiple cores, or I’d be at this all day), I amassed a [1,392 commit dataset.](https://gist.github.com/StanFromIreland/bd33d5ee3c59c54cbe1f3bad2fbdb4e9) With that, and some Git spelunking for the annotations, I was able to generate the above graph.