Guido van Rossum added the comment: Even before this patch, the re module doesn't work very well on byte strings. IMO this should be fixed. I've filed a separate bug to remind us: bug 1282. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1258> __________________________________