This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, xiang.zhang
Date 2018-05-28.15:13:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527520423.68.0.682650639539.issue33669@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-05-28 15:13:43serhiy.storchakasetrecipients: + serhiy.storchaka, xiang.zhang
2018-05-28 15:13:43serhiy.storchakasetmessageid: <1527520423.68.0.682650639539.issue33669@psf.upfronthosting.co.za>
2018-05-28 15:13:43serhiy.storchakalinkissue33669 messages
2018-05-28 15:13:43serhiy.storchakacreate