Message259409
I'm not quite sure what you mean by "do not know how to check if the deprecation warning are enabled". Do you mean how do you make sure you don't emit a DeprecationWarning if someone hasn't turned warnings on? If that's the case then if you look at some example code and read https://docs.python.org/3/c-api/exceptions.html#issuing-warnings you will notice that when you call the warning-related functions, all you have to do is check if the return value is < 0, then return like there is an exception raised. Otherwise the warnings module handles whether something will be shown. |
|
Date |
User |
Action |
Args |
2016-02-02 18:10:08 | brett.cannon | set | recipients:
+ brett.cannon, pitrou, vstinner, giampaolo.rodola, yselivanov, marco.buttu, anish.shah |
2016-02-02 18:10:08 | brett.cannon | set | messageid: <1454436608.03.0.882819163935.issue26182@psf.upfronthosting.co.za> |
2016-02-02 18:10:08 | brett.cannon | link | issue26182 messages |
2016-02-02 18:10:07 | brett.cannon | create | |
|