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 duncanb
Recipients duncanb
Date 2007-11-15.10:27:47
SpamBayes Score 0.10848048
Marked as misclassified No
Message-id <1195122468.38.0.534995719828.issue1445@psf.upfronthosting.co.za>
In-reply-to
Content
The following code throws a SystemError exception. cell_get_contents in
Objects\cellobject.c should check for a null op->ob_ref value and throw
an appropriate exception.

>>> def oops():
	def f(): cell
	f.func_closure[0].cell_contents
	cell = None

	
>>> oops()

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    oops()
  File "<pyshell#8>", line 3, in oops
    f.func_closure[0].cell_contents
SystemError: error return without exception set
>>>
History
Date User Action Args
2007-11-15 10:27:48duncanbsetspambayes_score: 0.10848 -> 0.10848048
recipients: + duncanb
2007-11-15 10:27:48duncanbsetspambayes_score: 0.10848 -> 0.10848
messageid: <1195122468.38.0.534995719828.issue1445@psf.upfronthosting.co.za>
2007-11-15 10:27:48duncanblinkissue1445 messages
2007-11-15 10:27:47duncanbcreate