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 | dbinger |
|---|---|
| Recipients | dbinger |
| Date | 2008年03月12日.18:33:03 |
| SpamBayes Score | 0.007170762 |
| Marked as misclassified | No |
| Message-id | <1205346785.26.0.563823122087.issue2280@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This is with the current revision of py3k: 61353.
parser.suite('"\u1234"') fails with a TypeError.
Changing the argument format from "s" to "s#" works around this problem.
I added a unit test for this. After fixing the "s#", another
bug is exposed by the same test: a string literal containing
\u1234 is mangled by sequence2st().
The last section of the patch seems to correct the second bug.
(I think getarg.c's handling of "s" has a problem
handling a unicode string containing a character whose
encoding is not 1 byte. It has a test for null bytes
at the end that does not work correctly.) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年03月12日 18:33:05 | dbinger | set | spambayes_score: 0.00717076 -> 0.007170762 recipients: + dbinger |
| 2008年03月12日 18:33:05 | dbinger | set | spambayes_score: 0.00717076 -> 0.00717076 messageid: <1205346785.26.0.563823122087.issue2280@psf.upfronthosting.co.za> |
| 2008年03月12日 18:33:04 | dbinger | link | issue2280 messages |
| 2008年03月12日 18:33:04 | dbinger | create | |