auto-increment operator - why no syntax error?
Steve Howell
showell30 at yahoo.com
Sat Dec 8 20:25:12 EST 2007
--- Marc 'BlackJack' Rintsch <bj_666 at gmx.net> wrote:
> On Sat, 08 Dec 2007 16:58:25 -0800, Karthik Gurusamy
> wrote:
>
> > Why are the following accepted even without a
> warning about syntax
> > error?
> > (I would expect the python grammar should catch
> these kind of syntax
> > errors)
> >>>> 2 * +++++ n
Does pychecker catch this? Although I see why the
language allows it, my guess is that most people chain
unary plus operations accidentally, not intentionally.
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the Python-list
mailing list