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
70b3c710
Commit
70b3c710
authored
Jun 11, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cpdef, make corrupt c file older than pyx file.
parent
5191f30a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
Cython/Utils.py
Cython/Utils.py
+1
-1
tests/compile/cpdef.pyx
tests/compile/cpdef.pyx
+6
-0
No files found.
Cython/Compiler/Symtab.py
View file @
70b3c710
...
...
@@ -375,7 +375,7 @@ class Scope:
def declare_pyfunction(self, name, pos):
# Add an entry for a Python function.
entry = self.lookup_here(name)
if entry:
if entry
and not entry.type.is_cfunction
:
# This is legal Python, but for now will produce invalid C.
error(pos, "'%s'
already
declared
" % name)
entry = self.declare_var(name, py_object_type, pos)
...
...
Cython/Utils.py
View file @
70b3c710
...
...
@@ -30,7 +30,7 @@ def castrate_file(path, st):
"#error Do not use this file, it is the result of a failed Cython compilation.
\
n
"
)
f
.
close
()
if
st
:
os
.
utime
(
path
,
(
st
.
st_atime
,
st
.
st_mtime
))
os
.
utime
(
path
,
(
st
.
st_atime
,
st
.
st_mtime
-
1
))
def
modification_time
(
path
):
st
=
os
.
stat
(
path
)
...
...
tests/compile/cpdef.pyx
0 → 100644
View file @
70b3c710
cdef
class
A
:
cpdef
a
(
self
):
ma
(
self
)
cpdef
ma
(
x
):
print
x
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