Message7174

Author Arfrever
Recipients Arfrever
Date 2012-05-31.00:13:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338423230.17.0.0215062867306.issue1906@psf.upfronthosting.co.za>
In-reply-to
Content
Actually only DeprecationWarnings, ImportWarnings and PendingDeprecationWarnings do not work:

$ jython2.7 -Wdefault
>>> import __builtin__, warnings
>>> for name in dir(__builtin__):
...   if name.endswith("Warning"):
...     print(name)
...     warnings.warn("Some warning", getattr(__builtin__, name))
... 
BytesWarning
__main__:4: BytesWarning: Some warning
DeprecationWarning
FutureWarning
__main__:4: FutureWarning: Some warning
ImportWarning
PendingDeprecationWarning
RuntimeWarning
__main__:4: RuntimeWarning: Some warning
SyntaxWarning
__main__:4: SyntaxWarning: Some warning
UnicodeWarning
__main__:4: UnicodeWarning: Some warning
UserWarning
__main__:4: UserWarning: Some warning
Warning
__main__:4: Warning: Some warning
>>>
History
Date User Action Args
2012-05-31 00:13:50Arfreversetmessageid: <1338423230.17.0.0215062867306.issue1906@psf.upfronthosting.co.za>
2012-05-31 00:13:50Arfreversetrecipients: + Arfrever
2012-05-31 00:13:49Arfreverlinkissue1906 messages
2012-05-31 00:13:49Arfrevercreate