[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2019-04-26 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2015-01-16 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +davin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14953
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2014-07-08 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Updated version of the patch.  Still needs docs.

--
Added file: http://bugs.python.org/file35902/memoryview-array-value.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14953
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2014-07-02 Thread Mark Lawrence

Mark Lawrence added the comment:

@Richard I assume that you'll be following this up.

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14953
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2012-06-05 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +neologix, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14953
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2012-05-29 Thread Richard Oudkerk

New submission from Richard Oudkerk shibt...@gmail.com:

The attached patch enables creation of shared objects allocated from shared 
memory using memoryview objects instead of ctypes.

This enables the use of shared memory on systems where ctypes is unavailable.

The new functions/classes RawArray, RawValue, Array and Array have been added 
to multiprocessing.heap.  They are almost equivalent to the functions/classes 
of the same name in multiprocessing and multiprocessing.sharedctypes when a 
letter typecode is used (rather than a ctypes type).

The differences in behaviour are due to the differences between memoryview 
objects and ctypes arrays.  The most noticeable is the fact that you can't set 
a slice using an arbitrary sequence, so

arr = multiprocessing.RawArray('i', [0]*10)
arr[:3] = [1,2,3]

has to be rewritten to something like

arr = multiprocessing.heap.RawArray('i', [0]*10)
arr[:3] = array.array('i', [1,2,3])

(No documetation yet.)

--
files: memoryview-array-value.patch
keywords: patch
messages: 161892
nosy: sbt
priority: normal
severity: normal
stage: patch review
status: open
title: Reimplement subset of multiprocessing.sharedctypes using memoryview
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file25754/memoryview-array-value.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14953
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com