[issue18166] 'value' attribute for ValueError

2015-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the analysis. Closing then! -- nosy: +pitrou resolution: -> rejected stage: test needed -> resolved status: open -> closed ___ Python tracker __

[issue18166] 'value' attribute for ValueError

2015-04-14 Thread Ofer Schwarz
Ofer Schwarz added the comment: So, this is actually impossible to do. Since exceptions are c-level classes, adding members to ValueError means anything that multiple-inherits from ValueError and any other complex exception gets a multiple bases layout conflict. There's already one such class -

[issue18166] 'value' attribute for ValueError

2015-04-14 Thread Ofer Schwarz
Ofer Schwarz added the comment: There's actually no advantage for a weakref here, since the exception object already holds an indirect reference to all the raising frame's locals through __traceback__. -- nosy: +blackfawn ___ Python tracker

[issue18166] 'value' attribute for ValueError

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder guys. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue18166] 'value' attribute for ValueError

2013-06-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18166] 'value' attribute for ValueError

2013-06-14 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18166] 'value' attribute for ValueError

2013-06-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18166] 'value' attribute for ValueError

2013-06-07 Thread Brett Cannon
New submission from Brett Cannon: A 'value attribute for ValueError could store a weakref to the value which triggered the exception. It should be a weakref so at to prevent accidental prevention of GC of the value. -- components: Interpreter Core messages: 190781 nosy: brett.cannon pr