This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon
Date 2008-08-20.17:24:04
SpamBayes Score 0.00030636674
Marked as misclassified No
Message-id <1219253045.72.0.972466322557.issue3602@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-08-20 17:24:06brett.cannonsetrecipients: + brett.cannon
2008-08-20 17:24:05brett.cannonsetmessageid: <1219253045.72.0.972466322557.issue3602@psf.upfronthosting.co.za>
2008-08-20 17:24:04brett.cannonlinkissue3602 messages
2008-08-20 17:24:04brett.cannoncreate