Comment 1 for bug 315706

Revision history for this message
Fernando Perez (fdo.perez) wrote :

No, see this comment in the code:

# RegExp to exclude strings with this start from autocalling. In
# particular, all binary operators should be excluded, so that if foo is
# callable, foo OP bar doesn't become foo(OP bar), which is invalid.

Since any callable X could potentially also implement arithmetic, so that

X+1

is as valid as (and different from!):

X(1)

We can't autocall on *any* binary operator.