Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
9d55ac9e
Commit
9d55ac9e
authored
Jul 28, 2015
by
Dong-hee,Na
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set is alsho unhashable data structure
parent
ce4c60a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/runtime/set.cpp
src/runtime/set.cpp
+1
-0
No files found.
src/runtime/set.cpp
View file @
9d55ac9e
...
@@ -557,6 +557,7 @@ void setupSet() {
...
@@ -557,6 +557,7 @@ void setupSet() {
frozenset_cls
->
giveAttr
(
"__nonzero__"
,
set_cls
->
getattr
(
internStringMortal
(
"__nonzero__"
)));
frozenset_cls
->
giveAttr
(
"__nonzero__"
,
set_cls
->
getattr
(
internStringMortal
(
"__nonzero__"
)));
frozenset_cls
->
giveAttr
(
"__hash__"
,
new
BoxedFunction
(
boxRTFunction
((
void
*
)
setHash
,
BOXED_INT
,
1
)));
frozenset_cls
->
giveAttr
(
"__hash__"
,
new
BoxedFunction
(
boxRTFunction
((
void
*
)
setHash
,
BOXED_INT
,
1
)));
set_cls
->
giveAttr
(
"__hash__"
,
None
);
set_cls
->
giveAttr
(
"add"
,
new
BoxedFunction
(
boxRTFunction
((
void
*
)
setAdd
,
NONE
,
2
)));
set_cls
->
giveAttr
(
"add"
,
new
BoxedFunction
(
boxRTFunction
((
void
*
)
setAdd
,
NONE
,
2
)));
set_cls
->
giveAttr
(
"remove"
,
new
BoxedFunction
(
boxRTFunction
((
void
*
)
setRemove
,
NONE
,
2
)));
set_cls
->
giveAttr
(
"remove"
,
new
BoxedFunction
(
boxRTFunction
((
void
*
)
setRemove
,
NONE
,
2
)));
...
...
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