Remove superfluous type check for Python scalars
Python scalars should have been converted to NumPy scalars
@@ -70,16 +70,6 @@ cdef inline CPointer _pointer(x):
if isinstance(x, core.Indexer):
return (<core.Indexer>x).get_pointer()
- if type(x) not in _pointer_numpy_types:
- if isinstance(x, six.integer_types):
- x = numpy.int64(x)
- elif isinstance(x, float):
- x = numpy.float64(x)
- elif isinstance(x, bool):
- x = numpy.bool_(x)
- else:
- raise TypeError('Unsupported type %s' % type(x))
-
itemsize = x.itemsize
if itemsize == 1:
return CInt8(x.view(numpy.int8))
