Skip to content

Commit

Permalink
ENH: Optimize array creation by avoiding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
m-d-w committed Jun 6, 2013
1 parent c9c20d4 commit 2ebf198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/common.h
Expand Up @@ -25,7 +25,7 @@ NPY_NO_EXPORT int
PyArray_DTypeFromObjectHelper(PyObject *obj, int maxdims,
PyArray_Descr **out_dtype, int string_status);

#define SUPPORTS_BUFFER_PROTOCOL(op) ( (Py_TYPE(op) != &PyList_Type) && (Py_None != op) || (Py_TYPE(op) != &PyTuple_Type) )
#define SUPPORTS_BUFFER_PROTOCOL(op) ((Py_TYPE(op) != &PyList_Type) && (Py_None != op) && (Py_TYPE(op) != &PyTuple_Type))

NPY_NO_EXPORT PyObject *
PyArray_GetAttrString_Lite(PyObject *v, char *name);
Expand Down

0 comments on commit 2ebf198

Please sign in to comment.