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
8568e5bf
Commit
8568e5bf
authored
Apr 28, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builtin type fixes
parent
bbecb06a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+0
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
8568e5bf
...
@@ -1520,15 +1520,12 @@ class SimpleCallNode(ExprNode):
...
@@ -1520,15 +1520,12 @@ class SimpleCallNode(ExprNode):
# coerced_self ExprNode or None used internally
# coerced_self ExprNode or None used internally
# wrapper_call bool used internally
# wrapper_call bool used internally
# optimized_call str or None
subexprs
=
[
'self'
,
'coerced_self'
,
'function'
,
'args'
,
'arg_tuple'
]
subexprs
=
[
'self'
,
'coerced_self'
,
'function'
,
'args'
,
'arg_tuple'
]
self
=
None
self
=
None
coerced_self
=
None
coerced_self
=
None
arg_tuple
=
None
arg_tuple
=
None
wrapper_call
=
False
wrapper_call
=
False
optimized_call
=
None
def
compile_time_value
(
self
,
denv
):
def
compile_time_value
(
self
,
denv
):
function
=
self
.
function
.
compile_time_value
(
denv
)
function
=
self
.
function
.
compile_time_value
(
denv
)
...
...
Cython/Compiler/Nodes.py
View file @
8568e5bf
...
@@ -3902,10 +3902,10 @@ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed
...
@@ -3902,10 +3902,10 @@ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed
}
}
if (none_allowed && obj == Py_None) return 1;
if (none_allowed && obj == Py_None) return 1;
else if (exact) {
else if (exact) {
if (
PyObject_TypeCheck(obj, type)
) return 1;
if (
obj->ob_type == type
) return 1;
}
}
else {
else {
if (
obj->ob_type == type
) return 1;
if (
PyObject_TypeCheck(obj, type)
) return 1;
}
}
PyErr_Format(PyExc_TypeError,
PyErr_Format(PyExc_TypeError,
"Argument '%s' has incorrect type (expected %s, got %s)",
"Argument '%s' has incorrect type (expected %s, got %s)",
...
...
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