-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Phase 2 of async/await #1946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Phase 2 of async/await #1946
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
407503a
Pristine copy of crawl.py, to be converted to async/await next.
04e6e83
Got basic support for PEP 492 in asyncio code.
2834f73
Rewrite the get_generator_*_type() functions (again).
31d0362
Whoops, AwaitableGenerator is Python 3 only.
1340034
Run file tests with --fast-parser
9f35170
Rename ts (after send) to tc (after reCeive).
4aa2541
Add unit tests for @coroutine.
662f38d
Switch to 3-arg AwaitableGenerator.
8be06db
Add minimal test-data/unit/lib-stub/types.pyi, for coroutine.
637eaf4
Fixup comments.
a97872d
Update lib-stub/typing.py.
319d403
Reorganize the test matrix. Check in the test program.
17bed84
Complete the compatibility matrix.
712d1a4
Make is_async_def() type-safe.
dcf011b
Fix options for testFullCoroutineMatrix.
6ffe63b
Sync typeshed
5052065
Wrap ProactorEventLoop import in platform check.
fc2fd88
Remove no-op @asyncio.coroutine decorators.
a9e5911
Reduce output volume in -q mode.
c725a29
Always define --iocp.
49e5a6f
Let check_awaitable_expr() compute iter_type in visit_yield_from_expr().
637d381
Clarify what is going on in is_async_def().
839dc7d
Respond to code review (simplify AwaitableGenerator test, restore com…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rewrite the get_generator_*_type() functions (again).
Mostly streamlined the comments, but also decided that return in a generator not explicitly declared as returning Any or Generator should be None.
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ def f() -> Iterator[int]: | |
return "foo" | ||
[out] | ||
|
||
|
||
-- If statement | ||
-- ------------ | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth keeping the note that this is
Any
because the yielded values can't be accessed anywhere.