Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93682
| References | (1 earlier) <55a0f241$0$2933$e4fe514c@news2.news.xs4all.nl> <55a0fa36$0$2935$e4fe514c@news.xs4all.nl> <mailman.417.1436613616.3674.python-list@python.org> <55a0fe55$0$2875$e4fe514c@news.xs4all.nl> <57a9e100-5783-4d95-bb41-f1d19e757c16@googlegroups.com> |
|---|---|
| Date | 2015-07-11 22:05 +1000 |
| Subject | Re: 0 + not 0 |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.419.1436616312.3674.python-list@python.org> (permalink) |
On Sat, Jul 11, 2015 at 9:54 PM, candide <c.candide@laposte.net> wrote: > Le samedi 11 juillet 2015 13:31:03 UTC+2, Luuk a écrit : > >> >> But operator precedence of 'not' is higher than of '+' ???? > > > Right but what does this prove? For instance, unary minus has higher precedence than exponentiation but the expression > > 2 ** -1 > > doesn't raise a syntax error. You'll see down below a footnote referring to this as a special case. But I don't know the details of how it all works, so short of digging into the source code, I can't explain this any better. There are others on this list who can, I believe. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
0 + not 0 candide <c.candide@laposte.net> - 2015-07-11 03:26 -0700
Re: 0 + not 0 Chris Angelico <rosuav@gmail.com> - 2015-07-11 20:38 +1000
Re: 0 + not 0 Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-07-11 12:38 +0200
Re: 0 + not 0 Luuk <luuk@invalid.lan> - 2015-07-11 13:12 +0200
Re: 0 + not 0 Chris Angelico <rosuav@gmail.com> - 2015-07-11 21:20 +1000
Re: 0 + not 0 Luuk <luuk@invalid.lan> - 2015-07-11 13:30 +0200
Re: 0 + not 0 candide <c.candide@laposte.net> - 2015-07-11 04:54 -0700
Re: 0 + not 0 Chris Angelico <rosuav@gmail.com> - 2015-07-11 22:05 +1000
Re: 0 + not 0 candide <c.candide@laposte.net> - 2015-07-11 06:22 -0700
Re: 0 + not 0 candide <c.candide@laposte.net> - 2015-07-11 04:48 -0700
Re: 0 + not 0 random832@fastmail.us - 2015-07-11 16:46 -0400
Re: 0 + not 0 Serhiy Storchaka <storchaka@gmail.com> - 2015-07-11 16:38 +0300
Re: 0 + not 0 candide <c.candide@laposte.net> - 2015-07-11 08:07 -0700
Re: 0 + not 0 MRAB <python@mrabarnett.plus.com> - 2015-07-11 17:20 +0100
Re: 0 + not 0 Ian Kelly <ian.g.kelly@gmail.com> - 2015-07-11 10:56 -0600
Re: 0 + not 0 Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-07-12 18:12 +1200
Re: 0 + not 0 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-11 21:05 +0100
csiph-web