Jerry Chen <je...@3rdengine.com> 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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6415>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to