Ned Batchelder

Startup.py

16 April

Someone recently asked how to permanently change the prompt in the Python interactive REPL. The answer is you can point the PYTHONSTARTUP environment variable at a Python file, and that file will be executed every time you enter the interactive prompt. » more..

Cog 3.0

2 April

Cog is a small tool I wrote years ago. It finds snippets of Python in text files, executes them, and inserts the result back into the text. » more..

Circle of Mad Libs

11 March

Sometimes you find an unexpected real-world connection even in the geekiest of places. I (nedbat) was hanging out in the #python IRC channel on Freenode, and I recommended to someone that they write a Mad Libs game for a project. » more..

Mutmut

2 March

Mutation testing is an old idea that I haven’t yet seen work out, but it’s fascinating. The idea is that your test suite should catch any bugs in your code, so what if we artificially insert bugs into the code, and see if the test suite catches them? » more..

More blog ·· art · autism · blogs · books · business · coverage · crafts · development · friends-&-family · funny · history · how-to · language · math · movies · music · online · parenting · photos · politics · python · quick-links · science · tools · typography · web · windows · work · 2019 · 18 · 17 · 16 · 15 · 14 · 13 · 12 · 11 · 10 · 09 · 08 · 07 · 06 · 05 · 04 · 03 · 02 · RSS feed » more topics..

Code

software I made

  • Aptus ·· a Mandelbrot set explorer
  • coverage.py ·· for measuring Python code coverage
  • hyphenate ·· for hyphenating words with the Liang/Knuth algorithm

» more code..

Text

words I wrote

» more text..