Adam Bartoš added the comment: Yes, it is a behavior change between Python 2 and Python 3. I just tried with 2.7 and 3.0. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18838> _______________________________________