4 ms·
And one of the python sources [0], where Timsort originates, for the later two conditions -- index (i) is checked to be in range of the list's (a) indices (size
by thezilch 14y ago
And one of the python sources [0], where Timsort originates, for the later two conditions -- index (i) is checked to be in range of the list's (a) indices (size):
if (i < 0 || i >= Py_SIZE(a)) {
if (indexerr == NULL) {
indexerr = PyString_FromString(
"list index out of range");
if (indexerr == NULL)
return NULL;
}
PyErr_SetObject(PyExc_IndexError, indexerr);
return NULL;
}
Can we really expect prose of such simple (more-or-less obvious?) functions to be patented? Tasked to write as many obvious variations of either of the above, I'd certainly expect to find something both functionally and grammatically the same.
[0] http://svn.python.org/projects/python/trunk/Objects/listobject.c http://svn.python.org/projects/python/trunk/Objects/listobje...
- adgar 14y ago> Can we really expect prose of such simple (more-or-less obvious?) functions to be patented? rangecheck is under copyright scrutiny, not patent scrutiny.
- uxp 14y ago> Can we really expect prose of such simple (more-or-less obvious?) functions to be patented? We're still talking about Copyright, not Patents. However, I agree entirely. I don't think I could come up with a function that verifies if a given index is valid in a given array that is substantially different than that.
- ars 14y ago> I don't think I could come up with a function that verifies if a given index is valid in a given array that is substantially different than that. You don't have to. That's not how copyright works. If two people come up with the same thing independently there is no violation. There is only a violation if you actually copied it.