Ned Batchelder
nedbat@hachyderm.io
<p>Python, software, coverage.py, typography, juggling, Boston, autism (dad). Laughing at the world doesn't mean I don't take it seriously. He/him.</p>
Posts
-
Post #4368012
Very cool. https://www.andrewt.net/dithered-qr-codes/
-
Post #4245474
Python packages should explicitly declare their version support with PyPI classifiers. https://pyreadiness.org/3.13/ lists 90 packages that don&#39;t declare support for 3.13, when many of those packages do support it. It&#39;s not hard to do, and it helps people understand what they can count on.
-
Post #4245473
Something I&#39;ve never seen before: an fi ligature hyphenated into an oddly wide f and a dotless i: #typography (This is in Firefox using CSS hyphenation settings.)
-
Post #4245472
Because someone in the #Python Discord was asking about structuring tests alongside their project code, I added a bit of test structure to my pkgsample explainer: https://github.com/nedbat/pkgsample
-
Post #4245471
A toy BASIC interpreter, written in #python: https://nedbatchelder.com/blog/202607/acidica
-
Post #3985140
So many of these reasons are why I keep a website. (1, 2, 3, 5, 6, 7, 12, 14, 15, 16, 25, 27, 28, 29, etc) https://bellkiosk.website/blog/reasons-to-website.html
-
Post #3719438
More amazingness: this font renders bracketed text as working QR codes: https://qr.jim.sh/
-
Post #3605900
Virtual environments in #python should have been called project environments.
-
Post #3469252
When thinking about #Python lists vs tuples: lists can be varying lengths and the elements will be treated the same. Tuples are namedtuples without the names. https://nedbatchelder.com/blog/201608/lists_vs_tuples
-
Post #3152585
A great thing about Special Olympics: they have a word for my son and others with disabilities like him: "Athlete".
-
Post #3142679
Serious risk: I will talk about #Boston history well above most peoples&#39; tolerance. https://nedbatchelder.com/blog/202606/franklins_parents_grave
-
Post #3142678
RE: https://cosocial.ca/@timbray/116681311879653314 This probably explains why @codecov cancelled their (tiny) GitHub sponsorship of coverage․py today...
-
Post #3142673
RE: https://mastodon.social/@djrrb/116686054571839496 It is very impressive to see how forms can be drastically altered to fit a (very extreme) design aesthetic, and still be legible to readers of the language.
-
Post #3142672
Today&#39;s (well, all week&#39;s) UI frustration: why doesn&#39;t What&#39;s App stay scrolled to the bottom of a chat? And focus the input box! What else would I want to do 99% of the time!?
-
Post #3142671
Today might be a day to trot out a paraphrase of Charles Schultz: I love community, it&#39;s people I can&#39;t stand.
-
Post #2521085
Some people have a hard time focusing on the technical content of a project: https://github.com/coveragepy/coveragepy/issues/2169: &quot;Remove politically related text from README.md to improve enterprise adoption&quot;
-
Post #1860159
Who is bringing juggling props to #PyCon? (Other than me)
-
Post #1770369
How much is your company spending to support the Python Software Foundation? For comparison, how much do they spend on tips for expensed meals? The PSF runs PyPI, where pip installs from. You depend on PyPI. Fund the PSF. Tip your server! https://www.python.org/psf/sponsorship/
-
Post #1770366
Sometimes when I see programming experts trying to help new learners I imagine what would happen if we were a driving school: &quot;The gas pedal makes the car go, right?&quot; &quot;Well, only if the engine is started, and not if you are out of gas, and not if the car is in neutral, and not if the car is parked against a wall, and not if the parking brake is on, and it shouldn&#39;t be called a gas pedal in an electric car, and, and, and....&quot;
-
Post #1765577
Python 1.0.0, released 31 years ago today: https://groups.google.com/g/comp.lang.misc/c/_QUzdEGFwCo/m/KIFdu0-Dv7sJ --&gt; Tired of decyphering the Perl code you wrote last week? --&gt; Frustrated with Bourne shell syntax? --&gt; Spent too much time staring at core dumps lately? Maybe you should try Python, the next generation object-oriented scripting and prototyping language, with a *readable* syntax. Python has been used by hundreds of happy users all over the world during the...
-
Post #1763160
&quot;The background radiation of the internet&quot; https://arman-bd.hashnode.dev/i-left-port-22-open-on-the-internet-for-54-days-here-s-who-showed-up
-
Post #1721653
Judging from questions by new learners, a big thing they need to learn is the real world is not like school: https://nedbatchelder.com/blog/202604/school_is_artificial
-
Post #1673854
I wrote a Sphinx extension to remove over-linked references in the Python docs. It was fun and turned out well: https://nedbatchelder.com/blog/202604/linklint
-
Post #1627458
To prompt LLMs successfully it seems you need redundant details, escalating emphasis and other forms of repetition. This goes against the well-know DRY principle (Don&#39;t Repeat Yourself). So instead remember CLAMMY: Claude Loses All Memory Mid-Yap.
-
Post #1488465
Just noticed that Google summarizes my blog post from yesterday as &quot;DarkLight Something wrong? © Copyright 2026, Ned Batchelder&quot;, that is, the useless words from the footer of the page. I can suppress that snippet with a &quot;data-nosnippet&quot; attribute, but it can only be on &lt;div&gt; &lt;span&gt; or &lt;section&gt; tags: https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag#data-nosnippet-attr I already use the nic...
-
Post #1262316
OMG! Finally!! In Python 3.15, PYTHONWARNINGS can have real regexes to control warnings: https://docs.python.org/3.15/library/warnings.html#the-warnings-filter. Discovered by spelunking the Python source while trying to find a way around this warning that I can&#39;t ignore: https://github.com/eventlet/eventlet/issues/1089
-
Post #1255117
Next time someone says &quot;C teaches you how computers really work&quot; show them this: https://www.lighterra.com/papers/modernmicroprocessors/. None of this is visible from C (and most isn&#39;t visible from assembly).
-
Post #1177374
I&#39;m continuing to explore human.json and other kinds of connections between websites (https://nedbatchelder.com/blog/202603/humanjson). But what should I do with the information? I have a list of 563 vouched-human websites with RSS feeds. What do I do with it?
-
Post #980656
Anyone recognize this style of meta tag? Is there a reference about it? &lt;meta name=author content=&quot;map[email:help@PersonName.com name:Person Name]&quot;&gt;
-
Post #973612
RE: https://fosstodon.org/@dzo4now/116272935624510527 Sorry, one more gripe: how is this a &quot;Background&quot; Security Improvement if it shows me scary notifications about needing to save my work, and then requires a reboot which might happen when I am not looking?