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:
 ).  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
messages: 294554
nosy: benjamin.peterson, gvanrossum, ncoghlan, pitrou, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: Allow setting cell value
type: enhancement
versions: Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to