Author xiang.zhang
Recipients Carl Ekerot, loewis, serhiy.storchaka, xiang.zhang
Date 2016-11-04.06:50:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478242257.91.0.557775363271.issue28563@psf.upfronthosting.co.za>
In-reply-to
Content
gettext_c2py.patch tries to avoid the problem. It still uses eval but manually parse the expression using tokens extracted from gettext. Tests are passed.

But there is still a problem. Both patched and original c2py fail to handle nested ternary operator. They respect the right associative but fails to handle expressions like '1?2?3:4:5'.
History
Date User Action Args
2016-11-04 06:50:58xiang.zhangsetrecipients: + xiang.zhang, loewis, serhiy.storchaka, Carl Ekerot
2016-11-04 06:50:57xiang.zhangsetmessageid: <1478242257.91.0.557775363271.issue28563@psf.upfronthosting.co.za>
2016-11-04 06:50:57xiang.zhanglinkissue28563 messages
2016-11-04 06:50:57xiang.zhangcreate