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
89c37c3c
Commit
89c37c3c
authored
Mar 12, 2010
by
Craig Citro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanups
parent
de75062c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
Cython/Compiler/Errors.py
Cython/Compiler/Errors.py
+2
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+3
-3
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+2
-2
No files found.
Cython/Compiler/Errors.py
View file @
89c37c3c
...
...
@@ -37,7 +37,8 @@ class CompileError(PyrexError):
# Deprecated and withdrawn in 2.6:
# self.message = message
if
position
:
pos_str
=
u"%s:%d:%d: "
%
(
position
[
0
].
get_description
(),
position
[
1
],
position
[
2
])
pos_str
=
u"%s:%d:%d: "
%
(
position
[
0
].
get_description
(),
position
[
1
],
position
[
2
])
cont
=
context
(
position
)
else
:
pos_str
=
u""
...
...
Cython/Compiler/ExprNodes.py
View file @
89c37c3c
...
...
@@ -6059,10 +6059,10 @@ class CoerceFromPyTypeNode(CoercionNode):
self
.
is_temp
=
1
if
not
result_type
.
create_from_py_utility_code
(
env
):
error
(
arg
.
pos
,
"Cannot convert Python object to '%s'"
%
result_type
)
"Cannot convert Python object to '%s'"
%
result_type
)
if
self
.
type
.
is_string
and
self
.
arg
.
is_ephemeral
():
error
(
arg
.
pos
,
"Obtaining char * from temporary Python value"
)
"Obtaining char * from temporary Python value"
)
def
analyse_types
(
self
,
env
):
# The arg is always already analysed
...
...
Cython/Compiler/Main.py
View file @
89c37c3c
...
...
@@ -146,9 +146,9 @@ class Context(object):
DropRefcountingTransform
(),
FinalOptimizePhase
(
self
),
GilCheck
(),
#
ClearResultCodes(self),
#
SpecialFunctions(self),
#
CreateClosureClasses(context),
#
ClearResultCodes(self),
#
SpecialFunctions(self),
#CreateClosureClasses(context),
]
def
create_pyx_pipeline
(
self
,
options
,
result
,
py
=
False
):
...
...
Cython/Compiler/Symtab.py
View file @
89c37c3c
...
...
@@ -1245,10 +1245,10 @@ class StructOrUnionScope(Scope):
self.var_entries.append(entry)
if type.is_pyobject and not allow_pyobject:
error(pos,
"C struct/union member cannot be a Python object")
"C struct/union member cannot be a Python object")
if visibility != '
private
':
error(pos,
"C struct/union member cannot be declared %s" % visibility)
"C struct/union member cannot be declared %s" % visibility)
return entry
def declare_cfunction(self, name, type, pos,
...
...
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