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
7072be52
Commit
7072be52
authored
Mar 14, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide 'set' builtin type in 'cython' namespace to make it available in Py2.3
parent
31fac6c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+4
-0
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
7072be52
...
...
@@ -1260,6 +1260,8 @@ class TransformBuiltinMethods(EnvTransform):
node
=
BoolNode
(
node
.
pos
,
value
=
True
)
elif
attribute
==
u'NULL'
:
node
=
NullNode
(
node
.
pos
)
elif
attribute
==
u'set'
:
node
=
NameNode
(
node
.
pos
,
name
=
EncodedString
(
'set'
))
elif
not
PyrexTypes
.
parse_basic_type
(
attribute
):
error
(
node
.
pos
,
u"'%s' not a valid cython attribute or is being used incorrectly"
%
attribute
)
return
node
...
...
@@ -1321,6 +1323,8 @@ class TransformBuiltinMethods(EnvTransform):
else
:
node
=
binop_node
(
node
.
function
.
pos
,
'/'
,
node
.
args
[
0
],
node
.
args
[
1
])
node
.
cdivision
=
True
elif
function
==
u'set'
:
node
.
function
=
NameNode
(
node
.
pos
,
name
=
EncodedString
(
'set'
))
else
:
error
(
node
.
function
.
pos
,
u"'%s' not a valid cython language construct"
%
function
)
...
...
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