Michael Tobis wrote:
On Aug 14, 6:01 pm, "Calvin Spealman" <[EMAIL PROTECTED]> 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

For 3.0, the error message for Barney.Albert)['abcd'] is slightly different -- TypeError: string indices must be integers -- but the effect is the same. I submitted
http://bugs.python.org/issue3558

tjr

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to