3 ms·
Actually, yes you can in Python - indirectly. Most of the usual operators can be imported as functions: from operator import lt will get you '<' as a fun
by BeetleB 10y ago
Actually, yes you can in Python - indirectly.
Most of the usual operators can be imported as functions:
from operator import lt
will get you '<' as a function.
- nickbauman 10y agoBut I have to use lt as a key, I can't use <. Important difference, no? Writing a DSL is much easier with that difference.