Steve Dower added the comment: Patch attached. I haven't been able to repro the issue locally without the fix, but it seems indisputably correct behavior.
We could also skip most of the function for an empty format string and save ourselves a lot of work. That would avoid the ambiguous returned "is it zero-length or is it an error" value. ---------- keywords: +patch Added file: http://bugs.python.org/file40469/25092_1.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25092> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com