Jerry Chen <[email protected]> added the comment:
Bug and patch confirmed on both py3k and python2.7 branches
Before:
$ ./python.exe warnsegfault.py
this exception is caught: incomplete format
this exception is also caught: incomplete format
Bus error
After:
$ ./python.exe warnsegfault.py this exception is caught: incomplete format
this exception is also caught: incomplete format
Traceback (most recent call last):
File "warnsegfault.py", line 21, in <module>
warnings.warn(MyWarning())
File "warnsegfault.py", line 10, in __str__
return "A bad formatted string %(err)" % {"err" : "there is no %(err)s"}
ValueError: incomplete format
----------
nosy: +jcsalterego
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue6415>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com