Serhiy Storchaka added the comment: > 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'([^?:]*?)\?([^?:]*?):([^?:]*)'? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28563> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com