Message57153
| Author |
christian.heimes |
| Recipients |
christian.heimes, gvanrossum |
| Date |
2007年11月06日.02:16:11 |
| SpamBayes Score |
0.017132452 |
| Marked as misclassified |
No |
| Message-id |
<1194315372.6.0.341994801739.issue1392@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Pfff! I've written my best code after having one or two beers :)
Updates:
* Added class BytesWarning(Warning)
* Added -b/-bb command line args and Py_BytesWarningFlag
* issue PyErr_WarnEx(PyExc_BytesWarning) when Py_BytesWarningFlag is set.
* Added warning filter for BytesWarning that raises an exception if
Py_BytesWarningFlag > 1
Open questions:
* the warning filter isn't set when the initializer cannot load the
warning module (e.g. frozen apps). W/o the warning module Python is
screwed anyway and frozen apps would never add the -b argument.
* the warnings are only enabled with -b. They can't be enabled by
modifying the warnings.filters. Is this fine with you? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年11月06日 02:16:12 | christian.heimes | set | spambayes_score: 0.0171325 -> 0.017132452 recipients:
+ christian.heimes, gvanrossum |
| 2007年11月06日 02:16:12 | christian.heimes | set | spambayes_score: 0.0171325 -> 0.0171325 messageid: <1194315372.6.0.341994801739.issue1392@psf.upfronthosting.co.za> |
| 2007年11月06日 02:16:12 | christian.heimes | link | issue1392 messages |
| 2007年11月06日 02:16:11 | christian.heimes | create |
|