[Python-ideas] Infix application of binary functions (original) (raw)
Chris Rebert pyideas at rebertia.com
Thu Jul 22 01:17:06 CEST 2010
- Previous message: [Python-ideas] Infix application of binary functions
- Next message: [Python-ideas] Infix application of binary functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jul 21, 2010 at 3:37 PM, Dag Odenhall <dag.odenhall at gmail.com> wrote:
It could help readability if binary (arity of 2) functions could be applied infix with some syntax. For example, borrowing from Haskell, the backtick could be reintroduced for this purpose.
Good examples for this are isinstance and hasattr: if someobject
isinstance
Iterable: ... elif someobjecthasattr
'iter':
Already proposed (by me) and rejected by the BDFL:
http://mail.python.org/pipermail/python-ideas/2007-January/000054.html
Cheers, Chris
- Previous message: [Python-ideas] Infix application of binary functions
- Next message: [Python-ideas] Infix application of binary functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]