Exploring Line Lengths in Python Packages | Pythonic Perambulations
This week, Twitter upped their single-tweet character limit from 140 to 280, purportedly based on this interesting analysis of tweet lengths published on Twitter's engineering blog. The gist of the analysis is this: English language tweets display a roughly log-normal distribution of character counts, except near the 140-character limit, at which the distribution spikes: The analysis takes this as evidence that twitter users often "cram" their longer thoughts into the 140 character limit, and suggest that a 280-character limit would more naturally accommodate the distribution of people's desired tweet lengths. This immediately brought to mind another character limit that many Python programmers face in their day-to-day lives: the 79-character line limit suggested by Python's PEP8 style guide: Limit all lines to a maximum of 79 characters. I began to wonder whether popular Python packages (e.g. NumPy, SciPy, Pandas, Scikit-Learn, Matplotlib, AstroPy) display anything similar to what is
This week, Twitter upped their single-tweet character limit from 140 to 280, purportedly based on this interesting analysis of tweet lengths published on Twitter's engineering blog. The gist of the analysis is this: English language tweets display a roughly log-normal distribution of character counts, except near the 140-character limit, at which the distribution spikes: The analysis takes this as evidence that twitter users often "cram" their longer thoughts into the 140 character limit, and suggest that a 280-character limit would more naturally accommodate the distribution of people's desir
Explore this link on the map →related reading
- llm-wiki · GitHubgist.github.com
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- GitHub - ccusage/ccusage: npx ccusage · GitHubgithub.com
- the-algorithm/src/scala/com/twitter/simclusters_v2/README.md at main · twitter/the-algorithm · GitHubgithub.com
- GitHub - dspiegel29/ArtofStatistics: Code for 'The Art of Statistics' · GitHubgithub.com
- GitHub - chenglou/pretext: Fast, accurate & comprehensive text measurement & layout · GitHubgithub.com
- PEP 8: The Style Guide for Python Codepep8.org
- pytudes/ipynb/AlphaCode.ipynb at main · norvig/pytudes · GitHubgithub.com
- Analysis of 2025 X Algorithm · GitHubgist.github.com
- The ideal PR is 50 lines longgraphite.dev
- PEP 8 – Style Guide for Python Code | peps.python.orgpeps.python.org
- Succinctness is Powerpaulgraham.com