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 christian.heimes
Recipients christian.heimes
Date 2007-10-08.16:39:19
SpamBayes Score 0.013473565
Marked as misclassified No
Message-id <1191861560.57.0.865268002143.issue1247@psf.upfronthosting.co.za>
In-reply-to
Content
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).
Files
File name Uploaded
pep3137.patch christian.heimes, 2007-10-08.16:39:19
History
Date User Action Args
2007-10-08 16:39:21christian.heimessetspambayes_score: 0.0134736 -> 0.013473565
recipients: + christian.heimes
2007-10-08 16:39:20christian.heimessetspambayes_score: 0.0134736 -> 0.0134736
messageid: <1191861560.57.0.865268002143.issue1247@psf.upfronthosting.co.za>
2007-10-08 16:39:20christian.heimeslinkissue1247 messages
2007-10-08 16:39:19christian.heimescreate