Lie schrieb: > I'm asking about people in c.l.py's opinion about a _probably_ very > Pythonic way of doing something if such features is implemented. It is > to be known that I'm not a Python expert and actually relatively new > to Python programming, so probably I'm just not thinking pythonic > enough yet or this feature might already exist somewhere in a > different name. > Anyway, I'm just asking for opinions, tell me problems I haven't > foreseen, or whether such things would be hard to implement, or > whether you think the idea is great or plain bad (and why). > > Soft Exception > What is "Soft Exception"? > Soft Exception is an exception that if is unhandled, pass silently as > if nothing happened. For example, if a variable turns into NoneType, > it'll raise Soft Exception that it have become NoneException, > programmers that wants to handle it can handle it with a try...except > block while programmers that doesn't care about it (or know it won't > be a problem to his code) can just leave the code as it is. > > Soft Exception differs from Hard Exceptions (the regular Exception) in > a way that Hard Exception must be handled at all cost or the program > will be terminated while Soft Exception allow programmers not to > handle it if they don't want to.
<snip/> Is this soft-exception implemented anywhere, so that one can see what experiences and best practices have evolved around using it? Diez -- http://mail.python.org/mailman/listinfo/python-list