[New-bugs-announce] [issue1247] PEP 3137 patch (repr, names, parser)

Christian Heimes report at bugs.python.org
Mon Oct 8 18:39:20 CEST 2007


New submission from 
					Christian Heimes
				:

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).

----------
components: Interpreter Core
files: pep3137.patch
messages: 56280
nosy: tiran
severity: major
status: open
title: PEP 3137 patch (repr, names, parser)
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1247>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pep3137.patch
Type: text/x-diff
Size: 8685 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071008/d5e76988/attachment.patch 


More information about the New-bugs-announce mailing list