This is an automatically generated e-mail. To reply, visit: http://reviewboard-fedoraserver.rhcloud.com/r/158/ |
This is neither a full review nor a blocking issue, just an opportunity to make the code nicer.
src/rolekit/async.py (Diff revision 2) | |||
---|---|---|---|
def do_something_async(param): |
|||
61 | # Asynchronous subroutine calls: |
61 | # Asynchronous subroutine calls: |
62 | yield async.call_future(subroutine_async(param)) |
62 | yield async.call_future(subroutine_async(param)) |
With PEP 380, “yield async.call_future” should disappear in favor of “yield from”
src/rolekit/async.py (Diff revision 2) | |||
---|---|---|---|
def do_something_async(param): |
|||
102 | The requirement to yield the final return value instead of just returning |
102 | The requirement to yield the final return value instead of just returning |
103 | could go away with PEP 380 (i.e. requiring Python 3.3). |
103 | could go away with PEP 380 (i.e. requiring Python 3.3). |
What is the specific Python 3 requirement? 3.0?
This would be a simplification worth trying I think (carefully because removing the last yield would replace a generator with an ordinary function, but hiding this difference would also be nice).
- Miloslav Trmac
On červen 17th, 2015, 5:44 odp. CEST, Stephen Gallagher wrote:
Review request for RoleKit Mailing List, Miloslav Trmac, Stephen Gallagher, and Thomas Woerner.
By Stephen Gallagher.
Updated Čer. 17, 2015, 5:44 odp.
Repository:
rolekit
Description
Testing
Diffs
|