Changeset 11705:f70144877d24 in orange


Ignore:
Timestamp:
09/16/13 12:05:25 (7 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Prevent the 'attributes' from being deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_kernel.cpp

    r11704 r11705  
    337337int Variable_set_attributes(TPyOrange *self, PyObject *dict) 
    338338{ 
     339    if (!dict) { 
     340        PYERROR(PyExc_TypeError, "Cannot delete 'attributes' dict", 0); 
     341    } 
     342 
    339343    if (!PyDict_Check(dict)) { 
    340344        PYERROR(PyExc_TypeError, "'attributes' must be a dict", 0); 
Note: See TracChangeset for help on using the changeset viewer.