New submission from Terry J. Reedy <[EMAIL PROTECTED]>: 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. ---------- assignee: georg.brandl components: Documentation messages: 71160 nosy: georg.brandl, tjreedy severity: normal status: open title: Operator precedence misdocumented versions: Python 2.5, Python 2.6, Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3558> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com