Well, I finally ran into a Python Unicode problem, sort of
BartC
bc at freeuk.com
Sun Jul 3 20:17:32 EDT 2016
On 04/07/2016 01:00, Lawrence D’Oliveiro wrote:
> On Monday, July 4, 2016 at 11:47:26 AM UTC+12, eryk sun wrote:
>> Python lacks a mechanism to add user-defined operators. (R has this
>> capability.) Maybe this feature could be added.
>
> That would be neat. But remember, you would have to define the operator precedence as well. So you could no longer use a recursive-descent parser.
That wouldn't be a problem provided the new operator symbol and its
precedence is known at a compile time, and defined before use.
--
Bartc
More information about the Python-list
mailing list