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
e6842141
Commit
e6842141
authored
Dec 04, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list of builtin types that are known to always return an instance of themselves
parent
226ad9cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+8
-0
No files found.
Cython/Compiler/Builtin.py
View file @
e6842141
...
@@ -120,6 +120,14 @@ builtin_types_table = [
...
@@ -120,6 +120,14 @@ builtin_types_table = [
(
"frozenset"
,
"PyFrozenSet_Type"
,
[]),
(
"frozenset"
,
"PyFrozenSet_Type"
,
[]),
]
]
types_that_construct_their_instance
=
(
# some builtin types do not always return an instance of
# themselves - these do:
'type'
,
'bool'
,
'long'
,
'float'
,
'bytes'
,
'unicode'
,
'tuple'
,
'list'
,
'dict'
,
'file'
,
# 'str', # only in Py3.x
# 'set', 'frozenset' # only in Py2.4+
)
builtin_structs_table
=
[
builtin_structs_table
=
[
...
...
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