]> granicus.if.org Git - python/commit
[Apply SF patch #504943]
authorWalter Dörwald <walter@livinglogic.de>
Thu, 21 Mar 2002 10:38:40 +0000 (10:38 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 21 Mar 2002 10:38:40 +0000 (10:38 +0000)
commitb25c2b0a4a46156bd8efa9eab39503e18fa0b805
tree8a48a9537b24e37ab60c2f69404a848451251234
parent047c05ebc4ce00f9ca8ccc5b8df437d758d130e8
[Apply SF patch #504943]

This patch makes it possible to pass Warning instances as the first
argument to warnings.warn. In this case the category argument
will be ignored. The message text used will be str(warninginstance).
Doc/lib/libwarnings.tex
Lib/warnings.py
Misc/NEWS