[Python-ideas] custom predicate for all() & any()

Victor Stinner victor.stinner at gmail.com
Tue Mar 29 08:08:04 EDT 2016


2016-03-26 17:30 GMT+01:00 titouan dk <dk.titouan at gmail.com>:
>     major = 18..__le__

Minor remark: using this syntax hack, you get float.__le__. I suggest
to write directly int.__le__ (or (18).__le__ is you really like
getting unbound methods).

Victor


More information about the Python-ideas mailing list