[New-bugs-announce] [issue30486] Allow setting cell value
report at bugs.python.org
Fri May 26 12:17:01 EDT 2017
New submission from Antoine Pitrou:
There are use cases for setting a cell value. One such use case is for (un)pickling recursive closures (see heroic workaround here: https://github.com/cloudpipe/cloudpickle/pull/90/files#diff-d2a3618afedd4e124c532151eedbae09R74 ). Other use cases may include tinkering around and general education value.
There also doesn't seem to be, AFAICS, any counter-indication to being able to do so. It's already possible in C using PyCell_Set(), which is a public API. It just lacks an API in Python land. For example `cell_contents` could become a read/write property...
components: Interpreter Core
nosy: benjamin.peterson, gvanrossum, ncoghlan, pitrou, rhettinger
stage: needs patch
title: Allow setting cell value
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce