Nedbatchelder - nedbatchelder.com - Ned Batchelder's blog
General Information:
Latest News:
I need help with coverage.py 12 Aug 2013 | 05:17 pm
Coverage.py is kind of stuck. I haven't done much to it in the last six months or so. Well, I've fixed six bugs, but I haven't released them because I want to fix more. In particular, I want to fix t...
How many instructions in a print statement? 17 Jul 2013 | 06:42 am
Hanging out in IRC channels, you see a lot of the same discussions pop up over and over again. One involves people who want to be "close to the metal." Either they want "no dependencies" (other than P...
Facts and myths about Python names and values 8 Jul 2013 | 05:43 am
I've written a page about how Python names and values work: Fact and myths about Python names and values. Other people have written about this, but maybe my small effort will help. As always, my pro...
Hashtags for commands 4 Jul 2013 | 06:24 am
I was working on creating a command today to run Pylint on only the files I had changed: pylint $(git diff --name-only $(git merge-base HEAD origin/master)) This works pretty well, but I'm not sure ...
Explaining descriptors 19 Jun 2013 | 05:09 am
I've always found descriptors to be one of the more confusing corners of Python. Partly, I think that's to do with the explanations in the docs, which I find opaque: In general, a descriptor is an ob...
51 at MoMath 16 Jun 2013 | 05:42 pm
For my birthday (today), we visited the Museum of Math in New York (yesterday). I've been looking forward to getting there since it opened six months ago, and my reluctant family had to accede to my b...
Filter a list into two parts 12 Jun 2013 | 06:25 am
A recent discussion on comp.lang.python asked how to Split a list into two parts based on a filter?, and the answers were interesting and insightful. The question was by Roy Smith. He asked about div...
What made you feel competent in Python? 24 May 2013 | 07:12 am
I'm trying to come up with more project ideas for intermediate learners, somewhat along the lines of Intermediate Python Workshop Projects. So here's a question for people who remember coming up from...
Mary Ela's transitional gravestone 19 May 2013 | 04:42 am
I was walking through Copp's Hill burying ground in Boston's North End today. The gravestones are fascinating, partly for the concrete connection to a distant past, but also for their antiquated style...
Config files: dot or not? 26 Apr 2013 | 04:31 am
Coverage.py reads a configuration file, which by default is in .coveragerc, with a leading dot. For years I thought Pylint had no default config file, because it wouldn't find .pylintrc, it turns out ...