Brett Cannon added the comment:

I'm fine with not changing this, but I did want to say that I don't think 
you're guaranteed to have access to the object that triggered the ValueError. 
If the value that is searched for is in some extension module where it's 
calculated using C code then you have no way of accessing that value unless the 
extension module was nice enough to provide the object in the exception, give 
the repr in the exception message, or document how exactly the transformation 
from input to what you searched for is.


Python tracker <>
Python-bugs-list mailing list

Reply via email to