Author xiang.zhang
Recipients Carl Ekerot, loewis, serhiy.storchaka, xiang.zhang
Date 2016-11-05.07:37:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> gettext.c2py("n()")(lambda: os.system("sh"))
> gettext.c2py("1()")(0)

Empty parentheses should be disallowed. Function calls are not allowed in plural expression. And non-integer argument should be disallowed either, just as Serhiy's example shows.

> What if make repeated replacements with regular expression r'([^?:]*?)\?([^?:]*?):([^?:]*)'?

How does it work for '1?2:3?4:5'? :-( I am considering a parser.
Date User Action Args
2016-11-05 07:37:11xiang.zhangsetrecipients: + xiang.zhang, loewis, serhiy.storchaka, Carl Ekerot
2016-11-05 07:37:11xiang.zhangsetmessageid: <>
2016-11-05 07:37:11xiang.zhanglinkissue28563 messages
2016-11-05 07:37:11xiang.zhangcreate