Message56280
The patches changes:
- change PyString's repr() to return "b'...'"
- change PyBytes's repr() to return "buffer(b'...')"
- change parser so that b"..." returns PyString, not PyBytes
- rename bytes -> buffer, str8 -> bytes
The patch breaks some unit test because some of the infrastructure like
the new buffer() isn't in place yet. I'm not happy with bytes_repr() but
the for loop with *p++ was the easiest way to implement it. Every other
implementation I could think of was either too complicated or wouldn't
work (like memcpy). |
| File name |
Uploaded |
|
pep3137.patch
|
christian.heimes,
2007-10-08.16:39:19
|
|
| Date |
User |
Action |
Args |
| 2007-10-08 16:39:21 | christian.heimes | set | spambayes_score: 0.0134736 -> 0.0134736 recipients:
+ christian.heimes |
| 2007-10-08 16:39:20 | christian.heimes | set | spambayes_score: 0.0134736 -> 0.0134736 messageid: <1191861560.57.0.865268002143.issue1247@psf.upfronthosting.co.za> |
| 2007-10-08 16:39:20 | christian.heimes | link | issue1247 messages |
| 2007-10-08 16:39:19 | christian.heimes | create | |
|