precedence of [] vs .

Michael Tobis mtobis at gmail.com
Thu Aug 14 19:17:04 EDT 2008


On Aug 14, 6:01 pm, "Calvin Spealman" <ironfro... at gmail.com> wrote:

>
> attribute access (foo.bar) binds more tightly than subscripting (foo[bar]).

That certainly looks right, and in retrospect I wonder that I even
doubted it. But even the official docs seem to me to specify
otherwise:

http://docs.python.org/ref/summary.html

mt




More information about the Python-list mailing list