[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2015-07-21 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
resolution:  - not a bug
stage: patch review - 
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-28 Thread Ethan Furman

Ethan Furman added the comment:

Downside to this patch (stoneleaf.01) is that custom AttributeErrors raised in 
__getattr__ are overridden, which is a pretty severe regression.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-28 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


Removed file: http://bugs.python.org/file34648/issue1615.stoneleaf.01.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-28 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
Removed message: http://bugs.python.org/msg215091

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-28 Thread Ethan Furman

Ethan Furman added the comment:

Downside to this patch (stoneleaf.02) is that custom AttributeErrors raised in 
__getattr__ are overridden, which is a pretty severe regression.

(Removed, renamed, and reloaded patch.)

--
Added file: http://bugs.python.org/file34657/issue1615.stoneleaf.02.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-27 Thread Ethan Furman

Ethan Furman added the comment:

Results from the first two tests in my test script:
--
'WithOut' object has no attribute 'not_here'

looking up not_here
looking up huh
'With' object has no attribute 'not_here'

--
stage: test needed - patch review
Added file: http://bugs.python.org/file34647/issue1615.stoneleaf.01.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-27 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


Removed file: http://bugs.python.org/file34647/issue1615.stoneleaf.01.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-27 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


Added file: http://bugs.python.org/file34648/issue1615.stoneleaf.01.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-21 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
stage: needs patch - test needed
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-02-03 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy:  -BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2013-10-16 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: rhettinger - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2013-10-16 Thread Ethan Furman

Ethan Furman added the comment:

Well, attached patch doesn't segfault in debug mode, but the errors aren't any 
better; in fact, I'd say their worse. Here's the current output from my test 
script:

===
getter failed for descriptor 'huh'

looking up not_here
looking up huh
huh not in class class '__main__.With'

Traceback (most recent call last):
  File break_getattr.py, line 30, in module
print(TestEnum.one.missing)
AttributeError: getter failed for descriptor 'missing'
===

As you can see, we have even less information when a class level __getattr__ is 
/absent/, and when we do have one, there is no change (which is exactly where 
we really wanted the change). :(

--
Added file: http://bugs.python.org/file32153/issue1615.stoneleaf.01.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2013-10-16 Thread Ethan Furman

Ethan Furman added the comment:

If anyone with more experience wants ownership, feel free to take it from me.  
;)  Otherwise I'll do my best to get this figured out in time for the beta.

--
assignee:  - ethan.furman
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2013-09-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Marking this for Python 3.4.  It isn't a bug in the descriptor protocol; 
rather, it is an implementation detail that is sometimes helpful but is mostly 
annoying.

--
title: descriptor protocol bug - PyObject_GenericGetAttr suppresses 
AttributeErrors in descriptors

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2013-09-20 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com