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
e5146422
Commit
e5146422
authored
May 04, 2016
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow generator to return non None values
we create quite strange lambda cfg nodes but it should be fine I guess
parent
741f69f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
src/runtime/generator.cpp
src/runtime/generator.cpp
+0
-1
test/tests/generators.py
test/tests/generators.py
+0
-1
No files found.
src/runtime/generator.cpp
View file @
e5146422
...
@@ -107,7 +107,6 @@ void generatorEntry(BoxedGenerator* g) {
...
@@ -107,7 +107,6 @@ void generatorEntry(BoxedGenerator* g) {
auto
r
=
callCLFunc
<
ExceptionStyle
::
CXX
,
NOT_REWRITABLE
>
(
func
->
md
,
nullptr
,
func
->
md
->
numReceivedArgs
(),
auto
r
=
callCLFunc
<
ExceptionStyle
::
CXX
,
NOT_REWRITABLE
>
(
func
->
md
,
nullptr
,
func
->
md
->
numReceivedArgs
(),
func
->
closure
,
g
,
func
->
globals
,
g
->
arg1
,
g
->
arg2
,
func
->
closure
,
g
,
func
->
globals
,
g
->
arg1
,
g
->
arg2
,
g
->
arg3
,
args
);
g
->
arg3
,
args
);
assert
(
r
==
None
);
Py_DECREF
(
r
);
Py_DECREF
(
r
);
}
catch
(
ExcInfo
e
)
{
}
catch
(
ExcInfo
e
)
{
// unhandled exception: propagate the exception to the caller
// unhandled exception: propagate the exception to the caller
...
...
test/tests/generators.py
View file @
e5146422
# expected: reffail
def
G1
(
i
=
0
):
def
G1
(
i
=
0
):
while
True
:
while
True
:
yield
i
yield
i
...
...
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