Show More
@@ -62,7 +62,6 b' def _pseudo_sync_runner(coro):' | |||||
62 | See discussion in https://github.com/python-trio/trio/issues/608, |
|
62 | See discussion in https://github.com/python-trio/trio/issues/608, | |
63 |
|
63 | |||
64 | Credit to Nathaniel Smith |
|
64 | Credit to Nathaniel Smith | |
65 |
|
||||
66 | """ |
|
65 | """ | |
67 | try: |
|
66 | try: | |
68 | coro.send(None) |
|
67 | coro.send(None) |
@@ -173,8 +173,8 b' def _ast_asyncify(cell:str, wrapper_name:str) -> ast.Module:' | |||||
173 | """ |
|
173 | """ | |
174 | Parse a cell with top-level await and modify the AST to be able to run it later. |
|
174 | Parse a cell with top-level await and modify the AST to be able to run it later. | |
175 |
|
175 | |||
176 | Parameter |
|
176 | Parameters | |
177 | --------- |
|
177 | ---------- | |
178 |
|
178 | |||
179 | cell: str |
|
179 | cell: str | |
180 | The code cell to asyncronify |
|
180 | The code cell to asyncronify | |
@@ -183,9 +183,10 b' def _ast_asyncify(cell:str, wrapper_name:str) -> ast.Module:' | |||||
183 | advised to **not** use a python identifier in order to not pollute the |
|
183 | advised to **not** use a python identifier in order to not pollute the | |
184 | global namespace in which the function will be ran. |
|
184 | global namespace in which the function will be ran. | |
185 |
|
185 | |||
186 | Return |
|
186 | Returns | |
187 | ------ |
|
187 | ------- | |
188 |
|
188 | |||
|
189 | ModuleType: | |||
189 | A module object AST containing **one** function named `wrapper_name`. |
|
190 | A module object AST containing **one** function named `wrapper_name`. | |
190 |
|
191 | |||
191 | The given code is wrapped in a async-def function, parsed into an AST, and |
|
192 | The given code is wrapped in a async-def function, parsed into an AST, and |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file |
General Comments 0
You need to be logged in to leave comments.
Login now