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 Rhamphoryncus
Recipients
Date 2007-04-24.06:12:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
test_struct is the only thing that touches __warningregistry__ besides test_warning and (in my other patch) test_py3kwarnings.  Looks like it would benefit from it, and could use some decorators too..

def check_float_coerce(format, number):
  ...
check_float_coerce = with_warning_restore(deprecated_err)

*cough*  Paraphrases of religious quotes relating to the creation of decorators aside, I think that'd be better written as a contextmanager.

By the time I'm done I'm going to end up with two dozen patch sets covering 80% of the python codebase x_x.
History
Date User Action Args
2007-08-23 15:57:53adminlinkissue1692664 messages
2007-08-23 15:57:53admincreate