[Python-ideas] a bad feature in Python syntax

语言破碎处 mlet_it_bew at 126.com
Tue Feb 28 21:56:56 EST 2017


I'm bited once:
    >>> '' in {} == False
    False
    >>> ('' in {}) == False
    True

    # '' in {} == False ==>> ('' in {}) and ({} == False) ==>> False!

I think only compare operations should be chained.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170301/94d68168/attachment.html>


More information about the Python-ideas mailing list