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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
69b11a3d
Commit
69b11a3d
authored
Mar 12, 2018
by
luz.paz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc typos
Found via `codespell`
parent
942953a4
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14 additions
and
14 deletions
+14
-14
Cython/Compiler/Buffer.py
Cython/Compiler/Buffer.py
+1
-1
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+2
-2
Cython/Compiler/CythonScope.py
Cython/Compiler/CythonScope.py
+1
-1
Cython/Compiler/FusedNode.py
Cython/Compiler/FusedNode.py
+1
-1
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+1
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+2
-2
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+1
-1
Cython/Debugger/libcython.py
Cython/Debugger/libcython.py
+1
-1
docs/src/userguide/memoryviews.rst
docs/src/userguide/memoryviews.rst
+1
-1
pyximport/pyximport.py
pyximport/pyximport.py
+1
-1
tests/errors/e_directives.pyx
tests/errors/e_directives.pyx
+1
-1
No files found.
Cython/Compiler/Buffer.py
View file @
69b11a3d
...
@@ -370,7 +370,7 @@ def put_assign_to_buffer(lhs_cname, rhs_cname, buf_entry,
...
@@ -370,7 +370,7 @@ def put_assign_to_buffer(lhs_cname, rhs_cname, buf_entry,
pybuffernd_struct
=
buffer_aux
.
buflocal_nd_var
.
cname
pybuffernd_struct
=
buffer_aux
.
buflocal_nd_var
.
cname
flags
=
get_flags
(
buffer_aux
,
buffer_type
)
flags
=
get_flags
(
buffer_aux
,
buffer_type
)
code
.
putln
(
"{"
)
# Set up neces
ar
ry stack for getbuffer
code
.
putln
(
"{"
)
# Set up neces
sa
ry stack for getbuffer
code
.
putln
(
"__Pyx_BufFmt_StackElem __pyx_stack[%d];"
%
buffer_type
.
dtype
.
struct_nesting_depth
())
code
.
putln
(
"__Pyx_BufFmt_StackElem __pyx_stack[%d];"
%
buffer_type
.
dtype
.
struct_nesting_depth
())
getbuffer
=
get_getbuffer_call
(
code
,
"%s"
,
buffer_aux
,
buffer_type
)
# fill in object below
getbuffer
=
get_getbuffer_call
(
code
,
"%s"
,
buffer_aux
,
buffer_type
)
# fill in object below
...
...
Cython/Compiler/Code.py
View file @
69b11a3d
...
@@ -440,7 +440,7 @@ class UtilityCode(UtilityCodeBase):
...
@@ -440,7 +440,7 @@ class UtilityCode(UtilityCodeBase):
hashes/equals by instance
hashes/equals by instance
proto C prototypes
proto C prototypes
impl implemenation code
impl implemen
t
ation code
init code to call on module initialization
init code to call on module initialization
requires utility code dependencies
requires utility code dependencies
proto_block the place in the resulting file where the prototype should
proto_block the place in the resulting file where the prototype should
...
@@ -1639,7 +1639,7 @@ class CCodeWriter(object):
...
@@ -1639,7 +1639,7 @@ class CCodeWriter(object):
as well
as well
- labels, temps, exc_vars: One must construct a scope in which these can
- labels, temps, exc_vars: One must construct a scope in which these can
exist by calling enter_cfunc_scope/exit_cfunc_scope (these are for
exist by calling enter_cfunc_scope/exit_cfunc_scope (these are for
sanity checking and forward compat
abil
ty). Created insertion points
sanity checking and forward compat
ibili
ty). Created insertion points
looses this scope and cannot access it.
looses this scope and cannot access it.
- marker: Not copied to insertion point
- marker: Not copied to insertion point
- filename_table, filename_list, input_file_contents: All codewriters
- filename_table, filename_list, input_file_contents: All codewriters
...
...
Cython/Compiler/CythonScope.py
View file @
69b11a3d
...
@@ -27,7 +27,7 @@ class CythonScope(ModuleScope):
...
@@ -27,7 +27,7 @@ class CythonScope(ModuleScope):
entry
.
in_cinclude
=
True
entry
.
in_cinclude
=
True
def
is_cpp
(
self
):
def
is_cpp
(
self
):
# Alow C++ utility code in C++ contexts.
# Al
l
ow C++ utility code in C++ contexts.
return
self
.
context
.
cpp
return
self
.
context
.
cpp
def
lookup_type
(
self
,
name
):
def
lookup_type
(
self
,
name
):
...
...
Cython/Compiler/FusedNode.py
View file @
69b11a3d
...
@@ -276,7 +276,7 @@ class FusedCFuncDefNode(StatListNode):
...
@@ -276,7 +276,7 @@ class FusedCFuncDefNode(StatListNode):
def
_fused_instance_checks
(
self
,
normal_types
,
pyx_code
,
env
):
def
_fused_instance_checks
(
self
,
normal_types
,
pyx_code
,
env
):
"""
"""
Gener
e
ate Cython code for instance checks, matching an object to
Generate Cython code for instance checks, matching an object to
specialized types.
specialized types.
"""
"""
for
specialized_type
in
normal_types
:
for
specialized_type
in
normal_types
:
...
...
Cython/Compiler/Main.py
View file @
69b11a3d
...
@@ -509,7 +509,7 @@ def run_pipeline(source, options, full_module_name=None, context=None):
...
@@ -509,7 +509,7 @@ def run_pipeline(source, options, full_module_name=None, context=None):
class
CompilationSource
(
object
):
class
CompilationSource
(
object
):
"""
"""
Contains the data neces
ar
ry to start up a compilation pipeline for
Contains the data neces
sa
ry to start up a compilation pipeline for
a single compilation unit.
a single compilation unit.
"""
"""
def
__init__
(
self
,
source_desc
,
full_module_name
,
cwd
):
def
__init__
(
self
,
source_desc
,
full_module_name
,
cwd
):
...
...
Cython/Compiler/Nodes.py
View file @
69b11a3d
...
@@ -1942,7 +1942,7 @@ class FuncDefNode(StatNode, BlockNode):
...
@@ -1942,7 +1942,7 @@ class FuncDefNode(StatNode, BlockNode):
code
.
put_var_incref
(
entry
)
code
.
put_var_incref
(
entry
)
# Note: defaults are always incref-ed. For def functions, we
# Note: defaults are always incref-ed. For def functions, we
# we acquire arguments from object convers
t
ion, so we have
# we acquire arguments from object conversion, so we have
# new references. If we are a cdef function, we need to
# new references. If we are a cdef function, we need to
# incref our arguments
# incref our arguments
elif
is_cdef
and
entry
.
type
.
is_memoryviewslice
and
len
(
entry
.
cf_assignments
)
>
1
:
elif
is_cdef
and
entry
.
type
.
is_memoryviewslice
and
len
(
entry
.
cf_assignments
)
>
1
:
...
...
Cython/Compiler/Symtab.py
View file @
69b11a3d
...
@@ -122,7 +122,7 @@ class Entry(object):
...
@@ -122,7 +122,7 @@ class Entry(object):
#
#
# buffer_aux BufferAux or None Extra information needed for buffer variables
# buffer_aux BufferAux or None Extra information needed for buffer variables
# inline_func_in_pxd boolean Hacky special case for inline function in pxd file.
# inline_func_in_pxd boolean Hacky special case for inline function in pxd file.
# Ideally this should not be neces
ar
ry.
# Ideally this should not be neces
sa
ry.
# might_overflow boolean In an arithmetic expression that could cause
# might_overflow boolean In an arithmetic expression that could cause
# overflow (used for type inference).
# overflow (used for type inference).
# utility_code_definition For some Cython builtins, the utility code
# utility_code_definition For some Cython builtins, the utility code
...
@@ -2421,7 +2421,7 @@ class CppClassScope(Scope):
...
@@ -2421,7 +2421,7 @@ class CppClassScope(Scope):
# to work with this type.
# to work with this type.
for
base_entry
in
\
for
base_entry
in
\
base_scope
.
inherited_var_entries
+
base_scope
.
var_entries
:
base_scope
.
inherited_var_entries
+
base_scope
.
var_entries
:
#contructor/destructor is not inherited
#con
s
tructor/destructor is not inherited
if
base_entry
.
name
in
(
"<init>"
,
"<del>"
):
if
base_entry
.
name
in
(
"<init>"
,
"<del>"
):
continue
continue
#print base_entry.name, self.entries
#print base_entry.name, self.entries
...
...
Cython/Compiler/TypeInference.py
View file @
69b11a3d
...
@@ -378,7 +378,7 @@ class SimpleAssignmentTypeInferer(object):
...
@@ -378,7 +378,7 @@ class SimpleAssignmentTypeInferer(object):
self
.
set_entry_type
(
entry
,
py_object_type
)
self
.
set_entry_type
(
entry
,
py_object_type
)
return
return
# Set of assign
em
nts
# Set of assign
me
nts
assignments
=
set
()
assignments
=
set
()
assmts_resolved
=
set
()
assmts_resolved
=
set
()
dependencies
=
{}
dependencies
=
{}
...
...
Cython/Debugger/libcython.py
View file @
69b11a3d
...
@@ -488,7 +488,7 @@ class SourceFileDescriptor(object):
...
@@ -488,7 +488,7 @@ class SourceFileDescriptor(object):
class
CyGDBError
(
gdb
.
GdbError
):
class
CyGDBError
(
gdb
.
GdbError
):
"""
"""
Base class for Cython-command related er
or
rs
Base class for Cython-command related er
ro
rs
"""
"""
def
__init__
(
self
,
*
args
):
def
__init__
(
self
,
*
args
):
...
...
docs/src/userguide/memoryviews.rst
View file @
69b11a3d
...
@@ -352,7 +352,7 @@ For a 3D C contiguous array::
...
@@ -352,7 +352,7 @@ For a 3D C contiguous array::
Out[6]: (12, 4, 1)
Out[6]: (12, 4, 1)
A Fortran contiguous array has the opposite memory ordering, with the elements
A Fortran contiguous array has the opposite memory ordering, with the elements
on the first axis closest togther in memory::
on the first axis closest tog
e
ther in memory::
In [7]: f_contig = np.array(c_contig, order='F')
In [7]: f_contig = np.array(c_contig, order='F')
In [8]: np.all(f_contig == c_contig)
In [8]: np.all(f_contig == c_contig)
...
...
pyximport/pyximport.py
View file @
69b11a3d
...
@@ -82,7 +82,7 @@ def _info(message, *args):
...
@@ -82,7 +82,7 @@ def _info(message, *args):
# already built. It might be more efficient to only do it when the
# already built. It might be more efficient to only do it when the
# mod time of the .pyx is newer than the mod time of the .so but
# mod time of the .pyx is newer than the mod time of the .so but
# the question is how to get distutils to tell me the name of the .so
# the question is how to get distutils to tell me the name of the .so
# before it builds it. Maybe it is easy...but maybe the peformance
# before it builds it. Maybe it is easy...but maybe the pe
r
formance
# issue isn't real.
# issue isn't real.
def
_load_pyrex
(
name
,
filename
):
def
_load_pyrex
(
name
,
filename
):
"Load a pyrex file given a name and filename."
"Load a pyrex file given a name and filename."
...
...
tests/errors/e_directives.pyx
View file @
69b11a3d
# mode: error
# mode: error
# cython: nonexist
a
nt = True
# cython: nonexist
e
nt = True
# cython: boundscheck = true
# cython: boundscheck = true
# cython: boundscheck = 9
# cython: boundscheck = 9
...
...
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