Message71560
Just some quick notes on this. The decorator should become:
def catchwarning(*, record=False, using=warnings)
Name change is to follow the naming convention in 'warnings' (even
though I prefer underscores). The 'using' argument is what module is
being used as the 'warnings' module (mostly just for testing
warings/_warnings). And they are both keyword-only (or at least in
spirit in 2.6) so that the potential to support properly dealing with
__warningregistry__ in the future can be added and the *args arguments
can be those modules to watch. |
|
Date |
User |
Action |
Args |
2008-08-20 17:24:06 | brett.cannon | set | recipients:
+ brett.cannon |
2008-08-20 17:24:05 | brett.cannon | set | messageid: <1219253045.72.0.972466322557.issue3602@psf.upfronthosting.co.za> |
2008-08-20 17:24:04 | brett.cannon | link | issue3602 messages |
2008-08-20 17:24:04 | brett.cannon | create | |
|