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

The attached patch makes memoryview objects weakrefable.

The reason I would like them to be weakrefable is so that I can manage the 
finalization and pickling of memoryview objects which wrap shared mmap segments.

(It would be even better if memoryview were subclassable, but I don't know if 
naively changing tp_flags would be enough.)

----------
components: Interpreter Core
files: memoryview-weakref.patch
keywords: patch
messages: 161729
nosy: sbt
priority: normal
severity: normal
stage: patch review
status: open
title: Make memoryview weakrefable
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file25739/memoryview-weakref.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14930>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to