Martin v. Löwis <mar...@v.loewis.de> added the comment: Oops, I take this back - I didn't notice you were using Python 3.1.
In any case, your first code is correct. What you get is the best you can ask for. That the second case fails is indeed a bug. ---------- resolution: invalid -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10757> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com