Message7174
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
>>> |
|
Date |
User |
Action |
Args |
2012-05-31 00:13:50 | Arfrever | set | messageid: <1338423230.17.0.0215062867306.issue1906@psf.upfronthosting.co.za> |
2012-05-31 00:13:50 | Arfrever | set | recipients:
+ Arfrever |
2012-05-31 00:13:49 | Arfrever | link | issue1906 messages |
2012-05-31 00:13:49 | Arfrever | create | |
|