GeezerVison is showing github.com — allow async as name, add asyncio, selectors, concurrent, and multipro… · jython/jython3@6355491
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: CPythonLib.includes +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 | # used as fileset in build.xml (target copy-full) |
3 | 3 |
|
4 | 4 | # Lib directories, in alphabetical order: |
| 5 | +asyncio/* |
5 | 6 | collections/** |
6 | 7 | compiler/** |
| 8 | +concurrent/* |
7 | 9 | distutils/** |
8 | 10 | email/** |
9 | 11 | encodings/** |
10 | 12 | ensurepip/** |
11 | 13 | http/** |
12 | 14 | importlib/* |
13 | 15 | logging/* |
| 16 | +multiprocessing/* |
14 | 17 | test/** |
15 | 18 | unittest/** |
16 | 19 | xml/etree/** |
@@ -143,6 +146,7 @@ robotparser.py |
143 | 146 | runpy.py |
144 | 147 | sched.py |
145 | 148 | sha.py |
| 149 | +selectors.py |
146 | 150 | sets.py |
147 | 151 | sgmllib.py |
148 | 152 | shelve.py |
|
Collapse file
Copy file name to clipboardExpand all lines: grammar/Python.g +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -418,6 +418,9 @@ name_or_print |
418 | 418 | : NAME { |
419 | 419 | $tok = $name_or_print.start; |
420 | 420 | } |
| 421 | + | ASYNC { |
| 422 | + $tok = $name_or_print.start; |
| 423 | + } |
421 | 424 | | {printFunction}? => PRINT { |
422 | 425 | $tok = $name_or_print.start; |
423 | 426 | } |
|
432 | 435 | | AND |
433 | 436 | | AS |
434 | 437 | | ASSERT |
| 438 | + | ASYNC |
| 439 | + | AWAIT |
435 | 440 | | BREAK |
436 | 441 | | CLASS |
437 | 442 | | CONTINUE |
|
Collapse file
Copy file name to clipboardExpand all lines: src/org/python/core/Py.java -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1043,11 +1043,6 @@ public static PyObject yieldFrom(PyFrame frame) { |
1043 | 1043 | } catch (PyException e) { |
1044 | 1044 | if (e.match(Py.StopIteration)) { |
1045 | 1045 | retval = e.value; |
1046 | | - if (retval instanceof PyBaseException) { |
1047 | | - if (((PyBaseException) retval).TYPE == Py.GeneratorExit) { |
1048 | | - throw e; |
1049 | | - } |
1050 | | - } |
1051 | 1046 | // if subgenerator exit, continue for next subgenerator |
1052 | 1047 | frame.f_stacktop = retval; |
1053 | 1048 | return null; |
|