Thanks for the report. I did get your longer one too. Someone opened a
similar issue on the bug tracker:
http://bugs.python.org/issue10680
The fix seems to be a one line fix - see the patch attached to the
tracker. The patch still needs tests, etc. before it can be committed,
but if you want to fix your local copy you can see how from there.