Home | Trees | Indices | Help |
|
---|
|
object --+ | exceptions.BaseException --+ | exceptions.Exception --+ | exceptions.Warning --+ | Warning
Base warning for this package
>>> with _warnings.catch_warnings(record=True) as record: ... Warning.emit('my message') ... assert len(record) == 1 ... str(record[0].message) 'my message'
>>> _warnings.simplefilter('error') >>> Warning.emit('lalala') Traceback (most recent call last): ... Warning: lalala
Instance Methods | |
Inherited from Inherited from Inherited from |
Class Methods | |||
|
Properties | |
Inherited from Inherited from |
Method Details |
Emit a warning of this very category This method is pure convenience. It saves you the unfriendly warnings.warn syntax (and the warnings import).
|
Home | Trees | Indices | Help |
|
---|