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
d6d10b79
Commit
d6d10b79
authored
Feb 19, 2016
by
Boxiang Sun
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add hash attr to dict object
parent
875432d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/runtime/dict.cpp
src/runtime/dict.cpp
+1
-1
No files found.
src/runtime/dict.cpp
View file @
d6d10b79
...
...
@@ -864,7 +864,7 @@ void setupDict() {
dict_cls
->
giveAttr
(
"__eq__"
,
new
BoxedFunction
(
FunctionMetadata
::
create
((
void
*
)
dictEq
,
UNKNOWN
,
2
)));
dict_cls
->
giveAttr
(
"__ne__"
,
new
BoxedFunction
(
FunctionMetadata
::
create
((
void
*
)
dictNe
,
UNKNOWN
,
2
)));
dict_cls
->
giveAttr
(
"__hash__"
,
None
);
dict_cls
->
giveAttr
(
"__iter__"
,
new
BoxedFunction
(
FunctionMetadata
::
create
((
void
*
)
dictIterKeys
,
typeFromClass
(
dictiterkey_cls
),
1
)));
...
...
Boxiang Sun
@Daetalus
mentioned in commit
60656759
·
Sep 08, 2016
mentioned in commit
60656759
mentioned in commit 60656759a5d3ea6e4c60bdcd75c8d0584112276b
Toggle commit list
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