Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: This will break the following case:
def geterrmsg(n): return ('function doesn't have arguments' if n == 0 else 'function have a single argument' if n == 1 else 'function have %d arguments') print(geterrmsg(n).format(n)) Actually geterrmsg() can take the error message from a translations database, and the number of different cases can be dependent on the language. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33669> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com