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
b62d8ba5
Commit
b62d8ba5
authored
Feb 09, 2019
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
d10c07a6
0041db28
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
119 deletions
+119
-119
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-2
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+1
-1
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+3
-3
docs/examples/tutorial/clibraries/queue3.pyx
docs/examples/tutorial/clibraries/queue3.pyx
+61
-61
docs/examples/userguide/memoryviews/quickstart.pyx
docs/examples/userguide/memoryviews/quickstart.pyx
+52
-52
No files found.
Cython/Compiler/Nodes.py
View file @
b62d8ba5
...
@@ -3466,8 +3466,8 @@ class DefNodeWrapper(FuncDefNode):
...
@@ -3466,8 +3466,8 @@ class DefNodeWrapper(FuncDefNode):
if
docstr
.
is_unicode
:
if
docstr
.
is_unicode
:
docstr
=
docstr
.
as_utf8_string
()
docstr
=
docstr
.
as_utf8_string
()
code
.
putln
(
if
with_pymethdef
:
'static char %s[] = %s;'
%
(
code
.
putln
(
'static char %s[] = %s;'
%
(
entry
.
doc_cname
,
entry
.
doc_cname
,
docstr
.
as_c_string_literal
()))
docstr
.
as_c_string_literal
()))
...
...
Cython/Utility/CythonFunction.c
View file @
b62d8ba5
...
@@ -1216,7 +1216,7 @@ static int __pyx_FusedFunction_init(void) {
...
@@ -1216,7 +1216,7 @@ static int __pyx_FusedFunction_init(void) {
//////////////////// ClassMethod.proto ////////////////////
//////////////////// ClassMethod.proto ////////////////////
#include "descrobject.h"
#include "descrobject.h"
static
PyObject
*
__Pyx_Method_ClassMethod
(
PyObject
*
method
);
/*proto*/
static
CYTHON_UNUSED
PyObject
*
__Pyx_Method_ClassMethod
(
PyObject
*
method
);
/*proto*/
//////////////////// ClassMethod ////////////////////
//////////////////// ClassMethod ////////////////////
...
...
Cython/Utility/Optimize.c
View file @
b62d8ba5
...
@@ -123,13 +123,13 @@ static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t
...
@@ -123,13 +123,13 @@ static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) ( \
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) ( \
(likely(PyList_CheckExact(L) && __Pyx_fits_Py_ssize_t(ix, type, is_signed))) ? \
(likely(PyList_CheckExact(L) && __Pyx_fits_Py_ssize_t(ix, type, is_signed))) ? \
__Pyx__PyList_PopIndex(L, py_ix, ix) : ( \
__Pyx__PyList_PopIndex(L, py_ix, ix) : ( \
(unlikely(
py_ix
== Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) : \
(unlikely(
(py_ix)
== Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) : \
__Pyx__PyObject_PopIndex(L, py_ix)))
__Pyx__PyObject_PopIndex(L, py_ix)))
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) ( \
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) ( \
__Pyx_fits_Py_ssize_t(ix, type, is_signed) ? \
__Pyx_fits_Py_ssize_t(ix, type, is_signed) ? \
__Pyx__PyList_PopIndex(L, py_ix, ix) : ( \
__Pyx__PyList_PopIndex(L, py_ix, ix) : ( \
(unlikely(
py_ix
== Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) : \
(unlikely(
(py_ix)
== Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) : \
__Pyx__PyObject_PopIndex(L, py_ix)))
__Pyx__PyObject_PopIndex(L, py_ix)))
#else
#else
...
@@ -138,7 +138,7 @@ static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t
...
@@ -138,7 +138,7 @@ static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t
__Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)
__Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) ( \
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) ( \
(unlikely(
py_ix
== Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) : \
(unlikely(
(py_ix)
== Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) : \
__Pyx__PyObject_PopIndex(L, py_ix))
__Pyx__PyObject_PopIndex(L, py_ix))
#endif
#endif
...
...
docs/examples/tutorial/clibraries/queue3.pyx
View file @
b62d8ba5
...
@@ -24,7 +24,7 @@ cdef class Queue:
...
@@ -24,7 +24,7 @@ cdef class Queue:
cpdef
append
(
self
,
int
value
):
cpdef
append
(
self
,
int
value
):
if
not
cqueue
.
queue_push_tail
(
self
.
_c_queue
,
if
not
cqueue
.
queue_push_tail
(
self
.
_c_queue
,
<
void
*>
value
):
<
void
*>
<
Py_ssize_t
>
value
):
raise
MemoryError
()
raise
MemoryError
()
# The `cpdef` feature is obviously not available for the original "extend()"
# The `cpdef` feature is obviously not available for the original "extend()"
...
...
docs/examples/userguide/memoryviews/quickstart.pyx
View file @
b62d8ba5
...
@@ -32,7 +32,7 @@ print("NumPy sum of NumPy array after assignments: %s" % narr.sum())
...
@@ -32,7 +32,7 @@ print("NumPy sum of NumPy array after assignments: %s" % narr.sum())
# A function using a memoryview does not usually need the GIL
# A function using a memoryview does not usually need the GIL
cpdef
int
sum3d
(
int
[:,
:,
:]
arr
)
nogil
:
cpdef
int
sum3d
(
int
[:,
:,
:]
arr
)
nogil
:
cdef
size_t
i
,
j
,
k
cdef
size_t
i
,
j
,
k
,
I
,
J
,
K
cdef
int
total
=
0
cdef
int
total
=
0
I
=
arr
.
shape
[
0
]
I
=
arr
.
shape
[
0
]
J
=
arr
.
shape
[
1
]
J
=
arr
.
shape
[
1
]
...
...
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