True == 1 weirdness
carl at oddbird.net
Wed Sep 16 22:39:07 CEST 2015
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?
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: OpenPGP digital signature
More information about the Python-list