[issue4230] __getattr__ can't be a descriptor
Ziga Seilnacht [EMAIL PROTECTED] added the comment: Here is a patch for trunk and 2.5 version. It also contains a fix for another crasher (see the tests). I only tested the 2.5 patch, because I don't have the tools for the trunk installed. -- keywords: +patch nosy: +zseil Added file: http://bugs.python.org/file12033/getattr_hooks_25.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4230] __getattr__ can't be a descriptor
Changes by Ziga Seilnacht [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12034/getattr_hooks_trunk.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4230] __getattr__ can't be a descriptor
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the patch! Fixed in r67246. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4230] __getattr__ can't be a descriptor
Ziga Seilnacht [EMAIL PROTECTED] added the comment: Here is another patch, for Python 2.4, which contains only the security fix. Benjamin, will you also commit these backports? Added file: http://bugs.python.org/file12036/getattr_hooks_24.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4230] __getattr__ can't be a descriptor
Benjamin Peterson [EMAIL PROTECTED] added the comment: Backported to 2.4 in r67250 and 2.5 in r67251. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4230] __getattr__ can't be a descriptor
zaur [EMAIL PROTECTED] added the comment: It's the issue for python 3.0 too -- nosy: +zaur ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4230] __getattr__ can't be a descriptor
New submission from Armin Rigo [EMAIL PROTECTED]: The attached example works in the __add__ and __getattribute__ cases on CPython, but fails in the __getattr__ case. All three cases work as the semantics say they should on Jython, IronPython and PyPy. It's admittedly an obscure use case. There is no reason that __getattr__ should behave differently. The behavior of __add__ and __getattribute__ is the correct one, according to the rule that special methods are bound (with __get__) before they are called. -- components: Interpreter Core files: x.py messages: 75322 nosy: arigo, cfbolz priority: low severity: normal status: open title: __getattr__ can't be a descriptor type: behavior versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7 Added file: http://bugs.python.org/file11905/x.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com