Message52373
| 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:53 | admin | link | issue1692664 messages |
| 2007年08月23日 15:57:53 | admin | create |
|