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
833d9c25
Commit
833d9c25
authored
Mar 25, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes
parent
b7a57379
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
src/codegen/compvars.cpp
src/codegen/compvars.cpp
+4
-0
src/runtime/inline/dict.cpp
src/runtime/inline/dict.cpp
+1
-0
test/tests/arg_unpacking.py
test/tests/arg_unpacking.py
+0
-1
No files found.
src/codegen/compvars.cpp
View file @
833d9c25
...
@@ -2773,6 +2773,10 @@ public:
...
@@ -2773,6 +2773,10 @@ public:
return
rtn
;
return
rtn
;
}
}
ConcreteCompilerVariable
*
makeConverted
(
IREmitter
&
emitter
,
VAR
*
var
,
ConcreteCompilerType
*
other_type
)
override
{
ConcreteCompilerVariable
*
makeConverted
(
IREmitter
&
emitter
,
VAR
*
var
,
ConcreteCompilerType
*
other_type
)
override
{
if
(
other_type
==
other_type
->
getBoxType
())
{
assert
(
other_type
==
UNKNOWN
);
return
emitter
.
getNone
()
->
makeConverted
(
emitter
,
other_type
);
}
llvm
::
Value
*
v
=
llvm
::
UndefValue
::
get
(
other_type
->
llvmType
());
llvm
::
Value
*
v
=
llvm
::
UndefValue
::
get
(
other_type
->
llvmType
());
return
new
ConcreteCompilerVariable
(
other_type
,
v
);
return
new
ConcreteCompilerVariable
(
other_type
,
v
);
}
}
...
...
src/runtime/inline/dict.cpp
View file @
833d9c25
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
namespace
pyston
{
namespace
pyston
{
BoxedDictIterator
::
BoxedDictIterator
(
BoxedDict
*
d
)
:
d
(
d
),
it
(
d
->
d
.
begin
()),
itEnd
(
d
->
d
.
end
())
{
BoxedDictIterator
::
BoxedDictIterator
(
BoxedDict
*
d
)
:
d
(
d
),
it
(
d
->
d
.
begin
()),
itEnd
(
d
->
d
.
end
())
{
Py_INCREF
(
d
);
}
}
Box
*
dict_iter
(
Box
*
s
)
noexcept
{
Box
*
dict_iter
(
Box
*
s
)
noexcept
{
...
...
test/tests/arg_unpacking.py
View file @
833d9c25
# expected: reffail
def
f
((
a
,
b
)):
def
f
((
a
,
b
)):
print
a
,
b
print
a
,
b
print
sorted
(
list
(
locals
().
iteritems
()))
print
sorted
(
list
(
locals
().
iteritems
()))
...
...
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