http://bugs.python.org/issue11777