True == 1 weirdness

Carl Meyer 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?
>>
>>
>> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20150916/cfedb85d/attachment.sig>


More information about the Python-list mailing list