Files
RustPython/Lib
snowapril 13bbefdd4e compiler: impl syntax error detect for global kind
This commit fixes `test_global_parap_err_first` test in
[test_syntax.py](https://github.com/RustPython/RustPython/blob/master/Lib/test/test_syntax.py#L678) and implement the other syntax errors detection as cpython 3.8 provided for global symbol.

Below syntax error conditions are added.
* name {} is parameter and global
```python
>>>>> def test(a):
.....   global a
.....
SyntaxError: name 'a' is parameter and global at line 2 column 2
        global a
```
* annotated name {} can't be global
```python
>>>>> def test():
.....   a: int
.....   global a
.....
SyntaxError: annotated name 'a' can't be global at line 3 column 2
        global a
```
* name {} is assigned to before global description
```python
>>>>> a = 100
>>>>> def test():
.....   a = 10
.....   global a
.....
SyntaxError: name 'a' is assigned to before global declaration at line 3 column 2
        global a
```
* name {} is used prior to global declaration
```python
>>>>> a = 10
>>>>> def test():
.....   print(a)
.....   global a
.....
SyntaxError: name 'a' is used prior to global declaration at line 3 column 2
        global a
```

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-08-17 21:14:13 +09:00
..
2021-04-11 17:38:44 -05:00
2021-04-22 08:08:19 -05:00
2020-09-18 12:00:24 -05:00
2020-12-05 16:36:35 -06:00
2021-06-02 18:18:58 -04:00
2021-01-23 01:10:52 -05:00
2021-03-14 12:49:59 -05:00
2020-10-07 19:29:41 -05:00
2021-05-21 01:32:55 -05:00
2020-05-23 17:37:48 -05:00
2021-02-14 14:47:41 -05:00
2021-01-28 12:34:04 -05:00
2021-01-14 12:37:37 -06:00
2020-08-09 16:33:24 +09:00
2020-08-09 16:33:24 +09:00
2020-08-11 16:38:35 -03:00
2020-08-11 16:38:35 -03:00
2021-01-29 18:10:15 -05:00
2021-01-25 17:08:04 -06:00
2019-08-19 16:26:00 +09:00
2021-03-14 12:49:59 -05:00
2019-07-19 22:38:09 -05:00
2020-03-20 17:35:11 +02:00
2021-01-23 01:10:52 -05:00
2020-01-12 22:57:19 -06:00
2021-08-11 21:29:22 +09:00
2020-07-18 17:04:35 +03:00
2020-03-15 11:00:23 +09:00
2021-03-14 12:49:59 -05:00
2021-04-14 19:22:07 -04:00
2021-02-20 21:04:29 -06:00
2020-05-03 18:13:09 -05:00
2021-05-20 20:40:11 -04:00
2020-08-11 16:38:35 -03:00
2019-09-13 01:27:23 -05:00
2021-07-20 14:36:02 +03:00
2019-07-10 22:16:42 -05:00
2021-04-11 17:38:44 -05:00
2020-03-01 14:36:01 -06:00
2020-10-25 15:44:59 +09:00
2019-07-16 19:13:07 -05:00
2019-09-13 01:27:23 -05:00
2021-06-07 21:12:22 -04:00
2019-07-11 09:38:13 -05:00
2020-10-27 22:14:07 -05:00
2020-09-21 10:41:58 -05:00
2021-01-27 15:20:52 -06:00
2021-04-27 08:15:13 -05:00
2021-01-27 15:20:52 -06:00
2021-01-31 19:26:44 -05:00
2021-05-23 20:14:35 -04:00
2021-05-23 16:15:49 -04:00
2019-06-22 13:13:34 +02:00
2021-04-11 17:38:44 -05:00
2020-10-07 19:29:41 -05:00
2019-06-29 14:44:39 +02:00
2020-12-07 21:19:46 -06:00

Standard Library for RustPython

This directory contains all of the Python files that make up the standard library for RustPython.

Most of these files are copied over from the CPython repository (the 3.7 branch), with slight modifications to allow them to work under RustPython. The current goal is to complete the standard library with as few modifications as possible. Current modifications are just temporary workarounds for bugs/missing feature within the RustPython implementation.

The first big module we are targeting is unittest, so we can leverage the CPython test suite.