Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
43cdef76
Commit
43cdef76
authored
Dec 21, 2019
by
Brian Wignall
Committed by
Stefan Behnel
Dec 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos (GH-3276)
parent
08b502c2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
Cython/Utility/MemoryView.pyx
Cython/Utility/MemoryView.pyx
+1
-1
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+1
-1
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+1
-1
pyximport/test/test_pyximport.py
pyximport/test/test_pyximport.py
+1
-1
tests/buffers/buffmt.pyx
tests/buffers/buffmt.pyx
+1
-1
tests/compile/find_pxd.srctree
tests/compile/find_pxd.srctree
+1
-1
tests/errors/unicode_identifiers_e3.pyx
tests/errors/unicode_identifiers_e3.pyx
+1
-1
tests/run/trashcan.pyx
tests/run/trashcan.pyx
+1
-1
tests/run/unicode_identifiers.pyx
tests/run/unicode_identifiers.pyx
+1
-1
No files found.
Cython/Utility/MemoryView.pyx
View file @
43cdef76
...
...
@@ -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 i
n
dexing offsets to the right suboffset or base data *
if
suboffset_dim
[
0
]
<
0
:
dst
.
data
+=
start
*
stride
else
:
...
...
Cython/Utility/MemoryView_C.c
View file @
43cdef76
...
...
@@ -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 efficient
l
y assign a scalar */
/* Currently unused */
static
void
__pyx_fill_slice_
{{
dtype_name
}}({{
type_decl
}}
*
p
,
Py_ssize_t
extent
,
Py_ssize_t
stride
,
...
...
Cython/Utility/ObjectHandling.c
View file @
43cdef76
...
...
@@ -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 d
e
scriptor type isn't exported in Py2.x, cannot easily check the type there
if
(
likely
(
__Pyx_TypeCheck
(
method
,
&
PyMethodDescr_Type
)))
#endif
{
...
...
pyximport/test/test_pyximport.py
View file @
43cdef76
...
...
@@ -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 re
ol
ad"
)
print
(
"Here goes the re
lo
ad"
)
reload
(
dummy
)
assert
len
(
pyximport
.
_test_files
)
==
1
,
pyximport
.
_test_files
...
...
tests/buffers/buffmt.pyx
View file @
43cdef76
...
...
@@ -165,7 +165,7 @@ def char3int(fmt):
>>> char3int("c3xiii")
>>> char3int("cxxxiii")
Standard alignment (assming int size is 4)
Standard alignment (ass
u
ming int size is 4)
>>> char3int("=c3xiii")
>>> char3int("=ciii")
Traceback (most recent call last):
...
...
tests/compile/find_pxd.srctree
View file @
43cdef76
...
...
@@ -41,7 +41,7 @@ ctypedef int my_type
######## path/numpy/__init__.pxd ########
# gh-2905: This should be found before Cython/In
lude
/numpy/__init__.pxd
# gh-2905: This should be found before Cython/In
cludes
/numpy/__init__.pxd
ctypedef int my_type
...
...
tests/errors/unicode_identifiers_e3.pyx
View file @
43cdef76
...
...
@@ -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 i
n
dentation error but is actually a combining accent as the first letter of column 4
c
=
3
_ERRORS
=
u"""
...
...
tests/run/trashcan.pyx
View file @
43cdef76
...
...
@@ -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 class
e
s are
# only run after the __dealloc__s of the subclasses.
# We use this to detect trashcan usage.
cdef
int
base_deallocated
=
0
...
...
tests/run/unicode_identifiers.pyx
View file @
43cdef76
...
...
@@ -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 i
n
ternally
>>> A().regular_function()
True
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment