Armin Rigo added the comment: A slightly more complete example that I tested: http://stackoverflow.com/a/16077568/1556290 ---------- nosy: +arigo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18033> _______________________________________