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
e6a49ace
Commit
e6a49ace
authored
Feb 15, 2019
by
Federico Stra
Committed by
Stefan Behnel
Feb 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix early binding example (#2847)
Fix early binding example. Closes GH-2848.
parent
bd56216a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
docs/examples/userguide/early_binding_for_speed/rectangle_cdef.pyx
...ples/userguide/early_binding_for_speed/rectangle_cdef.pyx
+2
-2
docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx
...les/userguide/early_binding_for_speed/rectangle_cpdef.pyx
+1
-1
No files found.
docs/examples/userguide/early_binding_for_speed/rectangle_cdef.pyx
View file @
e6a49ace
...
...
@@ -18,5 +18,5 @@ cdef class Rectangle:
return
self
.
_area
()
def
rectArea
(
x0
,
y0
,
x1
,
y1
):
rect
=
Rectangle
(
x0
,
y0
,
x1
,
y1
)
return
rect
.
area
()
cdef
Rectangle
rect
=
Rectangle
(
x0
,
y0
,
x1
,
y1
)
return
rect
.
_
area
()
docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx
View file @
e6a49ace
...
...
@@ -15,5 +15,5 @@ cdef class Rectangle:
return
area
def
rectArea
(
x0
,
y0
,
x1
,
y1
):
rect
=
Rectangle
(
x0
,
y0
,
x1
,
y1
)
cdef
Rectangle
rect
=
Rectangle
(
x0
,
y0
,
x1
,
y1
)
return
rect
.
area
()
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