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
7bda96a2
Commit
7bda96a2
authored
Jul 13, 2018
by
luz.paz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc. typos
Found via `codespell -q 3`
parent
e5a3d9d6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-2
Cython/Debugger/libpython.py
Cython/Debugger/libpython.py
+1
-1
docs/src/tutorial/clibraries.rst
docs/src/tutorial/clibraries.rst
+2
-2
docs/src/userguide/memoryviews.rst
docs/src/userguide/memoryviews.rst
+1
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
7bda96a2
...
@@ -7899,7 +7899,7 @@ class ListNode(SequenceNode):
...
@@ -7899,7 +7899,7 @@ class ListNode(SequenceNode):
return
()
return
()
def
infer_type
(
self
,
env
):
def
infer_type
(
self
,
env
):
# TO
OD
: Infer non-object list arrays.
# TO
DO
: Infer non-object list arrays.
return
list_type
return
list_type
def
analyse_expressions
(
self
,
env
):
def
analyse_expressions
(
self
,
env
):
...
@@ -8564,7 +8564,7 @@ class DictNode(ExprNode):
...
@@ -8564,7 +8564,7 @@ class DictNode(ExprNode):
return
()
return
()
def
infer_type
(
self
,
env
):
def
infer_type
(
self
,
env
):
# TO
OD
: Infer struct constructors.
# TO
DO
: Infer struct constructors.
return
dict_type
return
dict_type
def
analyse_types
(
self
,
env
):
def
analyse_types
(
self
,
env
):
...
...
Cython/Compiler/PyrexTypes.py
View file @
7bda96a2
...
@@ -594,9 +594,9 @@ class MemoryViewSliceType(PyrexType):
...
@@ -594,9 +594,9 @@ class MemoryViewSliceType(PyrexType):
the packing specifiers specify how the array elements are layed-out
the packing specifiers specify how the array elements are layed-out
in memory.
in memory.
'contig' -- The data
are
contiguous in memory along this dimension.
'contig' -- The data
is
contiguous in memory along this dimension.
At most one dimension may be specified as 'contig'.
At most one dimension may be specified as 'contig'.
'strided' -- The data
aren't contiguous along this dimenis
on.
'strided' -- The data
isn't contiguous along this dimensi
on.
'follow' -- Used for C/Fortran contiguous arrays, a 'follow' dimension
'follow' -- Used for C/Fortran contiguous arrays, a 'follow' dimension
has its stride automatically computed from extents of the other
has its stride automatically computed from extents of the other
dimensions to ensure C or Fortran memory layout.
dimensions to ensure C or Fortran memory layout.
...
...
Cython/Debugger/libpython.py
View file @
7bda96a2
...
@@ -2486,7 +2486,7 @@ class PyCont(ExecutionControlCommandBase):
...
@@ -2486,7 +2486,7 @@ class PyCont(ExecutionControlCommandBase):
def _pointervalue(gdbval):
def _pointervalue(gdbval):
"""
"""
Return the value of the p
io
nter as a Python int.
Return the value of the p
oi
nter as a Python int.
gdbval.type must be a pointer type
gdbval.type must be a pointer type
"""
"""
...
...
docs/src/tutorial/clibraries.rst
View file @
7bda96a2
...
@@ -192,7 +192,7 @@ Here is the most basic script for compiling a Cython module::
...
@@ -192,7 +192,7 @@ Here is the most basic script for compiling a Cython module::
)
)
To
build
against
the
external
C
library
,
we
need
to
make
sure
Cython
finds
the
necessary
libraries
.
To
build
against
the
external
C
library
,
we
need
to
make
sure
Cython
finds
the
necessary
libraries
.
There
are
two
ways
to
archive
this
.
First
we
can
tell
distutils
where
to
find
There
are
two
ways
to
archive
this
.
First
we
can
tell
distutils
where
to
find
the
c
-
source
to
compile
the
:
file
:`
queue
.
c
`
implementation
automatically
.
Alternatively
,
the
c
-
source
to
compile
the
:
file
:`
queue
.
c
`
implementation
automatically
.
Alternatively
,
we
can
build
and
install
C
-
Alg
as
system
library
and
dynamically
link
it
.
The
latter
is
useful
we
can
build
and
install
C
-
Alg
as
system
library
and
dynamically
link
it
.
The
latter
is
useful
...
@@ -361,7 +361,7 @@ Here, ``Py_ssize_t``::
...
@@ -361,7 +361,7 @@ Here, ``Py_ssize_t``::
cdef int pop(self):
cdef int pop(self):
return <Py_ssize_t>cqueue.queue_pop_head(self._c_queue)
return <Py_ssize_t>cqueue.queue_pop_head(self._c_queue)
Normally, in C, we risk lo
o
sing data when we convert a larger integer type
Normally, in C, we risk losing data when we convert a larger integer type
to a smaller integer type without checking the boundaries, and ``Py_ssize_t``
to a smaller integer type without checking the boundaries, and ``Py_ssize_t``
may be a larger type than ``int``. But since we control how values are added
may be a larger type than ``int``. But since we control how values are added
to the queue, we already know that all values that are in the queue fit into
to the queue, we already know that all values that are in the queue fit into
...
...
docs/src/userguide/memoryviews.rst
View file @
7bda96a2
...
@@ -640,7 +640,7 @@ You can call the function in a Cython file in the following way:
...
@@ -640,7 +640,7 @@ You can call the function in a Cython file in the following way:
Several things to note:
Several things to note:
- ``::1`` requests a C contiguous view, and fails if the buffer is not C contiguous.
- ``::1`` requests a C contiguous view, and fails if the buffer is not C contiguous.
See :ref:`c_and_fortran_contiguous_memoryviews`.
See :ref:`c_and_fortran_contiguous_memoryviews`.
- ``&arr_memview[0]`` can be understood as 'the adress of the first element of the
- ``&arr_memview[0]`` can be understood as 'the ad
d
ress of the first element of the
memoryview'. For contiguous arrays, this is equivalent to the
memoryview'. For contiguous arrays, this is equivalent to the
start address of the flat memory buffer.
start address of the flat memory buffer.
- ``arr_memview.shape[0]`` could have been replaced by ``arr_memview.size``,
- ``arr_memview.shape[0]`` could have been replaced by ``arr_memview.size``,
...
...
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