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 Carl Ekerot, loewis, serhiy.storchaka, xiang.zhang
Date 2016-11-04.20:47:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478292471.1.0.508642114604.issue28563@psf.upfronthosting.co.za>
In-reply-to
Content
> 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'.

What if make repeated replacements with regular expression r'([^?:]*?)\?([^?:]*?):([^?:]*)'?
History
Date User Action Args
2016-11-04 20:47:51serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, xiang.zhang, Carl Ekerot
2016-11-04 20:47:51serhiy.storchakasetmessageid: <1478292471.1.0.508642114604.issue28563@psf.upfronthosting.co.za>
2016-11-04 20:47:51serhiy.storchakalinkissue28563 messages
2016-11-04 20:47:51serhiy.storchakacreate