diff options
author | Brian Wignall <BrianWignall@gmail.com> | 2019-12-21 08:53:13 -0500 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-12-21 14:53:13 +0100 |
commit | 43cdef76c81637f52c53139f0ff15f7e40cfd3e7 (patch) | |
tree | 43f54482f18c50157ba14c5b75398a7d812b4048 | |
parent | 08b502c281cc1430ecbe2da67bf857bfd416ac04 (diff) | |
download | cython-43cdef76c81637f52c53139f0ff15f7e40cfd3e7.tar.gz |
Fix typos (GH-3276)
-rw-r--r-- | Cython/Utility/MemoryView.pyx | 2 | ||||
-rw-r--r-- | Cython/Utility/MemoryView_C.c | 2 | ||||
-rw-r--r-- | Cython/Utility/ObjectHandling.c | 2 | ||||
-rw-r--r-- | pyximport/test/test_pyximport.py | 2 | ||||
-rw-r--r-- | tests/buffers/buffmt.pyx | 2 | ||||
-rw-r--r-- | tests/compile/find_pxd.srctree | 2 | ||||
-rw-r--r-- | tests/errors/unicode_identifiers_e3.pyx | 2 | ||||
-rw-r--r-- | tests/run/trashcan.pyx | 2 | ||||
-rw-r--r-- | tests/run/unicode_identifiers.pyx | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/Cython/Utility/MemoryView.pyx b/Cython/Utility/MemoryView.pyx index b7af7aa37..5d7a525d3 100644 --- a/Cython/Utility/MemoryView.pyx +++ b/Cython/Utility/MemoryView.pyx @@ -885,7 +885,7 @@ cdef int slice_memviewslice( dst.shape[new_ndim] = new_shape 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: dst.data += start * stride else: diff --git a/Cython/Utility/MemoryView_C.c b/Cython/Utility/MemoryView_C.c index 2419bc04b..64552e5e1 100644 --- a/Cython/Utility/MemoryView_C.c +++ b/Cython/Utility/MemoryView_C.c @@ -927,7 +927,7 @@ __pyx_fill_slice_{{dtype_name}}({{type_decl}} *p, Py_ssize_t extent, Py_ssize_t ////////// FillStrided1DScalar ////////// /* 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 */ static void __pyx_fill_slice_{{dtype_name}}({{type_decl}} *p, Py_ssize_t extent, Py_ssize_t stride, diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c index e2b82bf4b..bb062f6c4 100644 --- a/Cython/Utility/ObjectHandling.c +++ b/Cython/Utility/ObjectHandling.c @@ -1668,7 +1668,7 @@ static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { target->method = method; #if CYTHON_COMPILING_IN_CPYTHON #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))) #endif { diff --git a/pyximport/test/test_pyximport.py b/pyximport/test/test_pyximport.py index b3a4a9058..ddbd54240 100644 --- a/pyximport/test/test_pyximport.py +++ b/pyximport/test/test_pyximport.py @@ -68,7 +68,7 @@ def make_ext(name, filename): time.sleep(1) # sleep a second to get safer mtimes open(os.path.join(tempdir, "abc.txt"), "w").write(" ") - print("Here goes the reolad") + print("Here goes the reload") reload(dummy) assert len(pyximport._test_files) == 1, pyximport._test_files diff --git a/tests/buffers/buffmt.pyx b/tests/buffers/buffmt.pyx index 851193f3f..0c4fd95dd 100644 --- a/tests/buffers/buffmt.pyx +++ b/tests/buffers/buffmt.pyx @@ -165,7 +165,7 @@ def char3int(fmt): >>> char3int("c3xiii") >>> char3int("cxxxiii") - Standard alignment (assming int size is 4) + Standard alignment (assuming int size is 4) >>> char3int("=c3xiii") >>> char3int("=ciii") Traceback (most recent call last): diff --git a/tests/compile/find_pxd.srctree b/tests/compile/find_pxd.srctree index 75d2765c9..23fc5c5c7 100644 --- a/tests/compile/find_pxd.srctree +++ b/tests/compile/find_pxd.srctree @@ -41,7 +41,7 @@ ctypedef int my_type ######## 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 diff --git a/tests/errors/unicode_identifiers_e3.pyx b/tests/errors/unicode_identifiers_e3.pyx index e3d8e26e4..e5cba9caa 100644 --- a/tests/errors/unicode_identifiers_e3.pyx +++ b/tests/errors/unicode_identifiers_e3.pyx @@ -3,7 +3,7 @@ def f(): 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 _ERRORS = u""" diff --git a/tests/run/trashcan.pyx b/tests/run/trashcan.pyx index 93a501ff8..48c43c3d2 100644 --- a/tests/run/trashcan.pyx +++ b/tests/run/trashcan.pyx @@ -92,7 +92,7 @@ cdef class RecurseList(list): # 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. # We use this to detect trashcan usage. cdef int base_deallocated = 0 diff --git a/tests/run/unicode_identifiers.pyx b/tests/run/unicode_identifiers.pyx index 474047888..76b7f3cbc 100644 --- a/tests/run/unicode_identifiers.pyx +++ b/tests/run/unicode_identifiers.pyx @@ -84,7 +84,7 @@ cdef class A: return self.ναμε==1 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() True """ |