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
Boxiang Sun
cython
Commits
902be3fc
Commit
902be3fc
authored
Mar 17, 2018
by
scoder
Committed by
GitHub
Mar 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2158 from luzpaz/misc-typos
Misc. typos
parents
30546e71
9d232b01
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
Cython/Debugger/libcython.py
Cython/Debugger/libcython.py
+1
-1
Cython/Utility/MemoryView.pyx
Cython/Utility/MemoryView.pyx
+1
-1
Demos/benchmarks/bpnn3.py
Demos/benchmarks/bpnn3.py
+1
-1
docs/src/quickstart/cythonize.rst
docs/src/quickstart/cythonize.rst
+1
-1
tests/run/__getattribute_subclasses__.pyx
tests/run/__getattribute_subclasses__.pyx
+2
-2
No files found.
Cython/Debugger/libcython.py
View file @
902be3fc
...
...
@@ -900,7 +900,7 @@ class CythonInfo(CythonBase, libpython.PythonInfo):
def
lineno
(
self
,
frame
):
# Take care of the Python and Cython levels. We need to care for both
# as we can't simply dispath to 'py-step', since that would work for
# as we can't simply dispat
c
h to 'py-step', since that would work for
# stepping through Python code, but it would not step back into Cython-
# related code. The C level should be dispatched to the 'step' command.
if
self
.
is_cython_function
(
frame
):
...
...
Cython/Utility/MemoryView.pyx
View file @
902be3fc
...
...
@@ -543,7 +543,7 @@ cdef class memoryview(object):
__pyx_getbuffer
=
capsule
(
<
void
*>
&
__pyx_memoryview_getbuffer
,
"getbuffer(obj, view, flags)"
)
# Some properties that have the same sematics as in NumPy
# Some properties that have the same sema
n
tics as in NumPy
@
property
def
T
(
self
):
cdef
_memoryviewslice
result
=
memoryview_copy
(
self
)
...
...
Demos/benchmarks/bpnn3.py
View file @
902be3fc
...
...
@@ -41,7 +41,7 @@ class NN(object):
# create weights
self
.
wi
=
makeMatrix
(
self
.
ni
,
self
.
nh
)
self
.
wo
=
makeMatrix
(
self
.
nh
,
self
.
no
)
# set them to random va
ul
es
# set them to random va
lu
es
for
i
in
range
(
self
.
ni
):
for
j
in
range
(
self
.
nh
):
self
.
wi
[
i
][
j
]
=
rand
(
-
2.0
,
2.0
)
...
...
docs/src/quickstart/cythonize.rst
View file @
902be3fc
...
...
@@ -147,7 +147,7 @@ of ``f`` is known to be a C double.) A notable exception, however, is
that an overflow would not occur (and so falls back to ``object`` in case
Python's bignums are needed). To allow inference of C integer types, set the
``infer_types`` :ref:`directive <compiler-directives>` to ``True``. This directive
does a work similar to the ``auto`` keyword in C++ for the readers who are famil
l
iar
does a work similar to the ``auto`` keyword in C++ for the readers who are familiar
with this language feature. It can be of great help to cut down on the need to type
everything, but it also can lead to surprises. Especially if one isn't familiar with
arithmetic expressions with c types. A quick overview of those
...
...
tests/run/__getattribute_subclasses__.pyx
View file @
902be3fc
...
...
@@ -208,7 +208,7 @@ cdef class boring_boring_getattr(boring_getattr):
cdef
class
getattribute_boring_boring_getattr
(
boring_boring_getattr
):
"""
__getattribute__ is always tried first, then __getattr__, regardless of where
in the inheritance hiarchy they came from.
in the inheritance hi
er
archy they came from.
>>> a = getattribute_boring_boring_getattr()
>>> (a.getattr_called, a.getattribute_called)
...
...
@@ -253,7 +253,7 @@ cdef class getattribute_boring_boring_getattr(boring_boring_getattr):
cdef
class
getattr_boring_boring_getattribute
(
boring_boring_getattribute
):
"""
__getattribute__ is always tried first, then __getattr__, regardless of where
in the inheritance hiarchy they came from.
in the inheritance hi
er
archy they came from.
>>> a = getattr_boring_boring_getattribute()
>>> (a.getattr_called, a.getattribute_called)
...
...
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