Ignore:
Timestamp:
10/23/13 13:30:11 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Accept an empty instances list in Orange.data.Table(domain, instances) constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_kernel.cpp

    r11705 r11742  
    31253125 
    31263126  if (PyList_Check(args)) { 
    3127     Py_ssize_t size=PyList_Size(args); 
    3128     if (!size) 
    3129       PYERROR(PyExc_TypeError, "can't construct a table from an empty list", (TExampleTable *)NULL); 
     3127    Py_ssize_t size = PyList_Size(args); 
    31303128 
    31313129    TExampleTable *table = mlnew TExampleTable(domain);; 
Note: See TracChangeset for help on using the changeset viewer.