[ python-Feature Requests-1190033 ] The array module and the buffer
interface
SourceForge.net
noreply at sourceforge.net
Thu Apr 28 14:39:59 CEST 2005
Feature Requests item #1190033, was opened at 2005-04-25 23:59
Message generated for change (Comment added) made by josiahcarlson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1190033&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Josiah Carlson (josiahcarlson)
Assigned to: Nobody/Anonymous (nobody)
Summary: The array module and the buffer interface
Initial Comment:
It would be terribly convenient if array objects were
willing to take any object supporting the buffer
interface as initialization or extension via
a.fromstring().
They currently offer the buffer interface for other
objects to read/write once the array has been created,
but they do not accept buffers during creation or
extension (except for the typecode 'c').
----------------------------------------------------------------------
>Comment By: Josiah Carlson (josiahcarlson)
Date: 2005-04-28 05:39
Message:
Logged In: YES
user_id=341410
I couldn't sleep, so I started working on it.
Note: a.fromstring(buf_obj) works in Python 2.3 and 2.4, it
just isn't documented, nor is it exposed via array_new.
I've got less than 20 lines of changes that seem to be
necessary for array(typecode, buf) to be supported,
including documentation and unittest updates. I'll sleep on
it (I'm getting tired) and upload it tomorrow.
----------------------------------------------------------------------
Comment By: Josiah Carlson (josiahcarlson)
Date: 2005-04-27 23:37
Message:
Logged In: YES
user_id=341410
Not right now, but I could probably have one for you
tomorrow. You want doc updates and tests too?
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2005-04-27 22:20
Message:
Logged In: YES
user_id=80475
Do you have a patch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1190033&group_id=5470
More information about the Python-bugs-list
mailing list