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
4eb283b6
Commit
4eb283b6
authored
Sep 10, 2007
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable attribute access of cdef functions
parent
4e91e8fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+2
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-1
Cython/Compiler/Version.py
Cython/Compiler/Version.py
+1
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
4eb283b6
...
...
@@ -22,7 +22,7 @@ Options:
-z, --pre-import <module> If specified, assume undeclared names in this
module. Emulates the behavior of putting
"from <module> import *" at the top of the file.
--incref
_local_
binop Force local an extra incref on local variables before
--incref
-local-
binop Force local an extra incref on local variables before
performing any binary operations.
"""
#The following experimental options are supported only on MacOSX:
...
...
@@ -78,7 +78,7 @@ def parse_command_line(args):
Options
.
embed_pos_in_docstring
=
1
elif
option
in
(
"-z"
,
"--pre-import"
):
Options
.
pre_import
=
pop_arg
()
elif
option
==
"--incref
_local_
binop"
:
elif
option
==
"--incref
-local-
binop"
:
Options
.
incref_local_binop
=
1
else
:
bad_usage
()
...
...
Cython/Compiler/ExprNodes.py
View file @
4eb283b6
...
...
@@ -1626,7 +1626,8 @@ class AttributeNode(ExprNode):
self
.
obj
.
analyse_types
(
env
)
self
.
analyse_attribute
(
env
)
if
self
.
entry
and
self
.
entry
.
is_cmethod
and
not
self
.
is_called
:
error
(
self
.
pos
,
"C method can only be called"
)
# error(self.pos, "C method can only be called")
pass
## Reference to C array turns into pointer to first element.
#while self.type.is_array:
# self.type = self.type.element_ptr_type()
...
...
@@ -2837,7 +2838,7 @@ class CmpNode:
and
op
not
in
(
'is'
,
'is_not'
)):
return
1
else
:
return
0
return
type1
.
is_cfunction
and
type1
.
is_cfunction
and
type1
==
type2
def
generate_operation_code
(
self
,
code
,
result_code
,
operand1
,
op
,
operand2
):
...
...
Cython/Compiler/ModuleNode.py
View file @
4eb283b6
...
...
@@ -158,7 +158,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
module_list
.
append
(
env
)
def
generate_module_preamble
(
self
,
env
,
cimported_modules
,
code
):
code
.
putln
(
'/* Generated by
Pyrex
%s on %s */'
%
(
code
.
putln
(
'/* Generated by
Cython
%s on %s */'
%
(
Version
.
version
,
time
.
asctime
()))
code
.
putln
(
''
)
code
.
putln
(
'#define PY_SSIZE_T_CLEAN'
)
...
...
Cython/Compiler/Version.py
View file @
4eb283b6
version
=
'0.9.6.
5
'
version
=
'0.9.6.
6
'
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