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 scott.dial
Recipients barry, gvanrossum, loewis, rhettinger, scott.dial
Date 2008-01-14.22:25:43
SpamBayes Score 0.018218605
Marked as misclassified No
Message-id <1200349544.99.0.637247462419.issue1826@psf.upfronthosting.co.za>
In-reply-to
Content
I want to clarify that the proposed change would break:

operator.attrgetter(foo)(bar) == getattr(bar, foo)

Which is the documented intent of the operator module: "This module
exports a set of functions implemented in C corresponding to the
intrinsic operators of Python."

Unless, you are proposing getattr grow this functionality as well. IOW,
should PyObject_GetAttr* perform this recursion? If so, should
PyObject_HasAttr*, PyObject_DelAttr*, PyObject_SetAttr* do this as well?
At the moment, it is possible to have foo's (as in above) that contain
dots despite the inability to spell that in python's dereferencing
syntax. However, I don't know that anybody does that.
History
Date User Action Args
2008-01-14 22:25:45scott.dialsetspambayes_score: 0.0182186 -> 0.018218605
recipients: + scott.dial, gvanrossum, loewis, barry, rhettinger
2008-01-14 22:25:45scott.dialsetspambayes_score: 0.0182186 -> 0.0182186
messageid: <1200349544.99.0.637247462419.issue1826@psf.upfronthosting.co.za>
2008-01-14 22:25:44scott.diallinkissue1826 messages
2008-01-14 22:25:43scott.dialcreate