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 ndbecker
Recipients ndbecker
Date 2009-01-08.20:18:12
SpamBayes Score 0.09058494
Marked as misclassified No
Message-id <1231445893.72.0.162990779773.issue4885@psf.upfronthosting.co.za>
In-reply-to
Content
I'd like to suggest some improvements from mmap

1) mmap assign to slice only accepts a string.  This is unfortunate,
because AFAIK a string can only be created by copying data, and this is
wasteful for large data transfers.  mmap should accept any object
supporting buffer protocol as well as string.

2) buffer (mmap_obj) gives a read_only buffer.  There should be a way to
make this read_write.  I suggest 'as_buffer' member.

3) mmap_obj does not support weak ref.  This is needed for proper
lifetime management using boost::python
History
Date User Action Args
2009-01-08 20:18:13ndbeckersetrecipients: + ndbecker
2009-01-08 20:18:13ndbeckersetmessageid: <1231445893.72.0.162990779773.issue4885@psf.upfronthosting.co.za>
2009-01-08 20:18:12ndbeckerlinkissue4885 messages
2009-01-08 20:18:12ndbeckercreate