True == 1 weirdness

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Sep 16 17:27:01 EDT 2015


On 16/09/2015 21:39, Carl Meyer wrote:
> On 09/16/2015 02:29 PM, Mark Lawrence wrote:
>> On 16/09/2015 18:53, Sven R. Kunze wrote:
>>> On 16.09.2015 19:39, Steven D'Aprano wrote:
>>>> node = left <= ptr => right
>>>
>>> Wow. I have absolutely no idea what this is supposed to mean. Do you
>>> care to elaborate?
>>>
>>>
>>> Best,
>>> Sven
>>
>> Simple, straight forward easy to read bit of Python, where is the
>> problem?  node is bound to the boolean ptr is greater than or equal to
>> left and right.
>
> Except it's a SyntaxError because Python has no => operator.
>
> Carl
>

Yes, Steven has made this mistake elsewhere.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list