This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients georg.brandl, terry.reedy
Date 2008-08-15.04:45:57
SpamBayes Score 0.0031362183
Marked as misclassified No
Message-id <1218775561.6.0.243287416094.issue3558@psf.upfronthosting.co.za>
In-reply-to
Content
Reference/Expressions/Primaries: "Primaries represent the most tightly
bound operations of the language. Their syntax is:
primary ::=  atom | attributeref | subscription | slicing | call"

This (along with the fact that all sections after 'call' doc follow in
order of decreasing precedence) implies to me that atom is highest and
call is lowest of this group.  Certainly, attributeref seems higher than
those that follow, as ob.attr[x] and ob.attr(x) are executed as
(ob.attr)[x] and (ob.attr)(x), not as ob.(attr[x]) or ob.(attr(x)) (both
taken literally are syntax errors). (Michael Tobis gave an example today
on c.l.p showing this.)

But the Summary of precedence at the chapter end lists attriburef to
call as low to high.  I think these should be reversed.
History
Date User Action Args
2008-08-15 04:46:01terry.reedysetrecipients: + terry.reedy, georg.brandl
2008-08-15 04:46:01terry.reedysetmessageid: <1218775561.6.0.243287416094.issue3558@psf.upfronthosting.co.za>
2008-08-15 04:45:59terry.reedylinkissue3558 messages
2008-08-15 04:45:57terry.reedycreate