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
ab33874c
Commit
ab33874c
authored
Sep 15, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another signature fix, support for issubclass() and callable()
parent
511d09f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+3
-1
No files found.
Cython/Compiler/Symtab.py
View file @
ab33874c
...
...
@@ -515,12 +515,14 @@ class BuiltinScope(Scope):
builtin_functions
=
{
"hasattr"
:
[
"PyObject_HasAttr"
,
c_bint_type
,
(
py_object_type
,
py_object_type
)],
"getattr"
:
[
"PyObject_GetAttr"
,
py_object_type
,
(
py_object_type
,
py_object_type
)],
"setattr"
:
[
"PyObject_SetAttr"
,
c_
b
int_type
,
(
py_object_type
,
py_object_type
,
py_object_type
),
-
1
],
"setattr"
:
[
"PyObject_SetAttr"
,
c_int_type
,
(
py_object_type
,
py_object_type
,
py_object_type
),
-
1
],
"cmp"
:
[
"PyObject_Compare"
,
c_int_type
,
(
py_object_type
,
py_object_type
),
None
,
True
],
"repr"
:
[
"PyObject_Repr"
,
py_object_type
,
(
py_object_type
,
),
0
],
# "str": ["PyObject_Str", py_object_type, (py_object_type, ), 0],
"unicode"
:
[
"PyObject_Unicode"
,
py_object_type
,
(
py_object_type
,
),
0
],
"isinstance"
:
[
"PyObject_IsInstance"
,
c_bint_type
,
(
py_object_type
,
py_object_type
),
-
1
],
"issubclass"
:
[
"PyObject_IsSubclass"
,
c_bint_type
,
(
py_object_type
,
py_object_type
),
-
1
],
"callable"
:[
"PyCallable_Check"
,
c_bint_type
,
(
py_object_type
,
)],
"hash"
:
[
"PyObject_Hash"
,
c_long_type
,
(
py_object_type
,
),
-
1
,
True
],
"type"
:
[
"PyObject_Type"
,
py_object_type
,
(
py_object_type
,
),
0
],
"len"
:
[
"PyObject_Size"
,
c_py_ssize_t_type
,
(
py_object_type
,
),
-
1
],
...
...
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