[ python-Bugs-1033720 ] buffer() object broken.
SourceForge.net
noreply at sourceforge.net
Fri Sep 24 17:24:36 CEST 2004
Bugs item #1033720, was opened at 2004-09-23 22:55
Message generated for change (Settings changed) made by nascheme
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1033720&group_id=5470
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: James Y Knight (foom)
>Assigned to: Neil Schemenauer (nascheme)
Summary: buffer() object broken.
Initial Comment:
This bug breaks Twisted.
print str(buffer(buffer("asdf", 0), 0, 131072))
On Python < 2.4, this prints 'asdf' as it should.
On Python 2.4, this prints '', as it most certainly *should not*.
It may have something to do with:
Python 2.4a2 (#61, Sep 9 2004, 22:24:36)
>>> buffer("asdf", 0)
<read-only buffer for 0x40234360, size -1, offset 0 at 0x40234280>
(size -1, WTF??)
vs.
Python 2.3.4 (#2, Jul 5 2004, 09:15:05)
>>> buffer("asdf", 0)
<read-only buffer for 0x402194a0, ptr 0x402194b4, size 4 at
0x40219460>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1033720&group_id=5470
More information about the Python-bugs-list
mailing list