On Dec 8, 8:56 pm, Steve Howell <[EMAIL PROTECTED]> wrote: > --- Bruno Desthuilliers > > <[EMAIL PROTECTED]> wrote: > > Colin J. Williams a écrit : > > > I'm not sure that I like add 3, 5, 7 > > > > but it would be nice to be able to drop the > > parentheses > > > when no argument is required. > > > > Thus: close; > > > could replace close(); > > > This just could not work given Python's object > > model. The parens > > actually *are* the call operator. > > I mostly agree with you, but in the specific use case > of having just a single token on a line, you could > argue that Python could DWIM on calling an object if > the object is callable, since otherwise it's just a > no-op.
Argh! I smell context sensitive semantics which is the road to language design hell. Fortunately this hell is already occupied by Perl and Larry Wall is a charming and funky guy. You know what look for. -- http://mail.python.org/mailman/listinfo/python-list