Article View: comp.lang.python
Article #116The Complexity Of Python
From: Lawrence D’Oliveiro
Date: Fri, 30 Oct 2026 04:25
Date: Fri, 30 Oct 2026 04:25
37 lines
2748 bytes
2748 bytes
A good measure of the complexity of a system is the length of its documentation. That is, assuming that the documentation is of good quality, and for Python I think it is. I decided to do a quick count of the length, by using WeasyPrint to convert the HTML pages to PDF files, and totalling up the number of PDF pages generated. For Python 3.14 (still the default on Debian Unstable as of this writing), the main language documentation is divided into 3 parts: the core language, the builtins, and the standard library. For the core language (files /usr/share/doc/python3.14/html/reference/*.html), I counted 271 pages total. For the builtins (files /usr/share/doc/python3.14/html/builtins/*.html), I counted 218 pages total. These counts might be slight overestimates. I saw a couple of extra pages with no body text in one or two PDF files, and also the default font seemed a bit large. For comparison, the Java 21 language spec, already provided as a PDF file, totals 872 pages. Note this is just the core language, not even including the java.lang package (the equivalent of Python’s builtins). This confirms the point, that Python is a much simpler language than Java. And yet it does this without compromising on power: Python manages to include niceties like multiple inheritance and operator overloads, which Java had to leave out. I also did a count of the standard library (files /usr/share/doc/python3.14/html/library/*.html); this consisted of 323 separate HTML files, totalling 3915 formatted pages. It took nearly 20 minutes to format and count all these.
Technical Details
Message-ID:
<11c168k$3uqfm$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.python Subject: The Complexity Of Python Date: Fri, 30 Oct 2026 04:25:56 -0000 (UTC) Organization: A noiseless patient Spider Lines: 37 Message-ID: <11c168k$3uqfm$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Oct 2026 04:25:57 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4155894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Z5nUmvbyKeziykfA99ZHZ"; posting-host="a2d4bf737ef4dcecc3ecbe7a7a4a744c" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:w6GFscm0u+P+7hCCdflNUgMCioM= sha256:1GljKPuDS2GW/S0rh1gbsst9ce5J/AYSwpSJFILY9Vw= sha1:OZoHuM633v4tUoOE5S41bHVzke0= sha256:k62w733inTBUitlYY9bAGtw2kZhXgF8bNTm9t6QZ11U=