Commits

Aleš Erjavec committed 0141e03

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

Comments (0)

Files changed (1)

source/orange/lib_kernel.cpp

   }
 
   if (PyList_Check(args)) {
-    Py_ssize_t size=PyList_Size(args);
-    if (!size)
-      PYERROR(PyExc_TypeError, "can't construct a table from an empty list", (TExampleTable *)NULL);
+    Py_ssize_t size = PyList_Size(args);
 
     TExampleTable *table = mlnew TExampleTable(domain);;