[NumPy-Tickets] [NumPy] #2046: Deleting ndarray.real on an instance segfaults

NumPy Trac numpy-tickets@scipy....
Sun Feb 12 18:44:00 CST 2012

#2046: Deleting ndarray.real on an instance segfaults
 Reporter:  alex_gaynor  |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  Other        |     Version:  devel      
 Keywords:               |  

Comment(by alex_gaynor):

 That's not a strange message, there's no protocol for Python to invoke if
 you try to delete a function call, so it raises a SyntaxError at parse

 For Python code, when del is used on an attribute it invokes __delattr__
 (or __delete__ on a descriptor), for C code with a descriptor it'll invoke
 the setter with a NULL argument.  My guess is numpy isn't handling NULL
 arguments correctly.

 This isn't a bug in Python.

Ticket URL: <http://projects.scipy.org/numpy/ticket/2046#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list