Commit 43cdef76 authored by Brian Wignall's avatar Brian Wignall Committed by Stefan Behnel

Fix typos (GH-3276)

parent 08b502c2
...@@ -885,7 +885,7 @@ cdef int slice_memviewslice( ...@@ -885,7 +885,7 @@ cdef int slice_memviewslice(
dst.shape[new_ndim] = new_shape dst.shape[new_ndim] = new_shape
dst.suboffsets[new_ndim] = suboffset dst.suboffsets[new_ndim] = suboffset
# Add the slicing or idexing offsets to the right suboffset or base data * # Add the slicing or indexing offsets to the right suboffset or base data *
if suboffset_dim[0] < 0: if suboffset_dim[0] < 0:
dst.data += start * stride dst.data += start * stride
else: else:
......
...@@ -927,7 +927,7 @@ __pyx_fill_slice_{{dtype_name}}({{type_decl}} *p, Py_ssize_t extent, Py_ssize_t ...@@ -927,7 +927,7 @@ __pyx_fill_slice_{{dtype_name}}({{type_decl}} *p, Py_ssize_t extent, Py_ssize_t
////////// FillStrided1DScalar ////////// ////////// FillStrided1DScalar //////////
/* Fill a slice with a scalar value. The dimension is direct and strided or contiguous */ /* Fill a slice with a scalar value. The dimension is direct and strided or contiguous */
/* This can be used as a callback for the memoryview object to efficienty assign a scalar */ /* This can be used as a callback for the memoryview object to efficiently assign a scalar */
/* Currently unused */ /* Currently unused */
static void static void
__pyx_fill_slice_{{dtype_name}}({{type_decl}} *p, Py_ssize_t extent, Py_ssize_t stride, __pyx_fill_slice_{{dtype_name}}({{type_decl}} *p, Py_ssize_t extent, Py_ssize_t stride,
......
...@@ -1668,7 +1668,7 @@ static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { ...@@ -1668,7 +1668,7 @@ static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
target->method = method; target->method = method;
#if CYTHON_COMPILING_IN_CPYTHON #if CYTHON_COMPILING_IN_CPYTHON
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
// method dscriptor type isn't exported in Py2.x, cannot easily check the type there // method descriptor type isn't exported in Py2.x, cannot easily check the type there
if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type))) if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
#endif #endif
{ {
......
...@@ -68,7 +68,7 @@ def make_ext(name, filename): ...@@ -68,7 +68,7 @@ def make_ext(name, filename):
time.sleep(1) # sleep a second to get safer mtimes time.sleep(1) # sleep a second to get safer mtimes
open(os.path.join(tempdir, "abc.txt"), "w").write(" ") open(os.path.join(tempdir, "abc.txt"), "w").write(" ")
print("Here goes the reolad") print("Here goes the reload")
reload(dummy) reload(dummy)
assert len(pyximport._test_files) == 1, pyximport._test_files assert len(pyximport._test_files) == 1, pyximport._test_files
......
...@@ -165,7 +165,7 @@ def char3int(fmt): ...@@ -165,7 +165,7 @@ def char3int(fmt):
>>> char3int("c3xiii") >>> char3int("c3xiii")
>>> char3int("cxxxiii") >>> char3int("cxxxiii")
Standard alignment (assming int size is 4) Standard alignment (assuming int size is 4)
>>> char3int("=c3xiii") >>> char3int("=c3xiii")
>>> char3int("=ciii") >>> char3int("=ciii")
Traceback (most recent call last): Traceback (most recent call last):
......
...@@ -41,7 +41,7 @@ ctypedef int my_type ...@@ -41,7 +41,7 @@ ctypedef int my_type
######## path/numpy/__init__.pxd ######## ######## path/numpy/__init__.pxd ########
# gh-2905: This should be found before Cython/Inlude/numpy/__init__.pxd # gh-2905: This should be found before Cython/Includes/numpy/__init__.pxd
ctypedef int my_type ctypedef int my_type
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
def f(): def f():
a = 1 a = 1
́b = 2 # looks like an identation error but is actually a combining accent as the first letter of column 4 ́b = 2 # looks like an indentation error but is actually a combining accent as the first letter of column 4
c = 3 c = 3
_ERRORS = u""" _ERRORS = u"""
......
...@@ -92,7 +92,7 @@ cdef class RecurseList(list): ...@@ -92,7 +92,7 @@ cdef class RecurseList(list):
# Some tests where the trashcan is NOT used. When the trashcan is not used # Some tests where the trashcan is NOT used. When the trashcan is not used
# in a big recursive deallocation, the __dealloc__s of the base classs are # in a big recursive deallocation, the __dealloc__s of the base classes are
# only run after the __dealloc__s of the subclasses. # only run after the __dealloc__s of the subclasses.
# We use this to detect trashcan usage. # We use this to detect trashcan usage.
cdef int base_deallocated = 0 cdef int base_deallocated = 0
......
...@@ -84,7 +84,7 @@ cdef class A: ...@@ -84,7 +84,7 @@ cdef class A:
return self.ναμε==1 return self.ναμε==1
def regular_function(self): def regular_function(self):
""" """
Can use unicode cdef functions and (private) attributes iternally Can use unicode cdef functions and (private) attributes internally
>>> A().regular_function() >>> A().regular_function()
True True
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment