Commit graph

530 commits

Author SHA1 Message Date
Noah
eedbf3aa6c Fix __class__ nonlocal resolution 2020-10-07 19:33:11 -05:00
Noah
16a896d513 Fix accessing __doc__ while inside a class definition 2020-10-07 19:28:19 -05:00
Jeong YunWon
09b8414162 Fix nightly clippy 2020-10-01 07:08:55 +09:00
Jeong YunWon
6c96793f05 Fix dis.dis to prints inner constant codes like CPython 2020-09-21 06:09:55 +09:00
minoring
09e4e9a86c Refactor checks for symbol in register_name 2020-09-06 11:40:32 +09:00
minoring
678b8e779b Modify nonlocal to be declared multiple times
Related to #2183
2020-09-05 22:42:52 +09:00
minoring
de7396347f Fix nonlocal checks
Related to #2189
2020-09-05 22:41:24 +09:00
Noah
a251109090 Fix some minor things required for unittest 2020-08-20 04:18:21 +09:00
Jeong YunWon
f9fe1c0423 Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests"
This reverts commit 96926daf6ffa2a8dbb374b3c6169b378bd0d67ef, reversing
changes made to 230f91582f98ff74abeb8759718e49c386e2b398.
2020-08-20 04:18:21 +09:00
Noah
7f0798b235 Fix some minor things required for unittest 2020-08-12 16:03:20 -05:00
Yiqun Ling
d8c8b11726 Add nested and optimized for symtable 2020-08-13 04:12:28 +09:00
Noah
3c080eb4cc Merge pull request #2006 from Lynskylate/try-to-use-local
Use loadname local replace loadname free
2020-08-11 10:13:35 -05:00
Jeong YunWon
7714871b37 clean up PyComplex 2020-08-09 21:46:16 +09:00
lynskylate
2b54fa871f Fix load context 2020-08-08 13:08:13 +08:00
lynskylate
f6eb1168bc Fix scope error 2020-08-08 01:53:13 +08:00
lynskylate
a6be7eea26 Merge remote-tracking branch 'origin/master' into try-to-use-local 2020-08-07 01:18:56 +08:00
lynskylate
32232811fb Fix scope change 2020-08-02 03:43:19 +08:00
lynskylate
dcca662432 Optimize code 2020-08-01 02:05:44 +08:00
Yiqun Ling
70eeb28748 Apply suggestions from code review
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
2020-08-01 01:29:11 +08:00
lynskylate
6a66f88304 Merge remote-tracking branch 'origin/master' into feature-symtable 2020-07-31 02:12:41 +08:00
lynskylate
66731121ab Introduce symtable test and add is_annotation for symbol 2020-07-31 02:11:00 +08:00
Noah
dc4acdf19e Update itertools 2020-07-26 15:21:39 -05:00
lynskylate
5ca3fc79f4 Try to use loadname local replace loadname free 2020-07-18 04:02:42 +08:00
Yiqun Ling
f6e25fc0cb Set annotation for function args 2020-07-14 18:58:58 +09:00
Jeong YunWon
1125a529e7 CompilerError always contains source_path 2020-07-14 13:48:39 +09:00
lynskylate
fae42a0533 Add annotation setup 2020-07-08 01:06:12 +08:00
lynskylate
e1999cb698 Remove needless return 2020-07-07 06:11:02 +08:00
lynskylate
a3b7a83741 Add annotation setup 2020-07-07 06:00:50 +08:00
Noah
949c37620e Merge pull request #1964 from TheAnyKey/TheAnyKey/p38_named_expression_completion_step2
Py3.8 Named expression completion - error handling and scoping
2020-06-28 09:30:23 -05:00
Noah
40576c7a84 Release 0.1.2
rustpython@0.1.2
rustpython-bytecode@0.1.2
rustpython-compiler@0.1.2
rustpython-derive@0.1.2
rustpython-parser@0.1.2
rustpython-vm@0.1.2
rustpython_freeze@0.1.2
rustpython_wasm@0.1.2

Generated by cargo-workspaces
2020-06-23 18:47:08 -05:00
TheAnyKey
26654d7404 Merge branch 'master' into TheAnyKey/p38_named_expression_completion_step2 2020-06-22 00:34:00 +02:00
TheAnyKey
60a787e3e0 fixed scoping issue, commented test with references to original version 2020-06-21 22:18:43 +00:00
TheAnyKey
162e5d02ab commented and cleaned up 2020-06-14 12:06:39 +00:00
TheAnyKey
71f2603556 completion of error handling for named expressions and scope handling improvements 2020-06-13 21:16:51 +00:00
Noah
94eadd7137 Merge pull request #1951 from TheAnyKey/TheAnyKey/p38_named_expression_completion
Fix scope issue for non-locals
2020-06-10 16:36:12 -05:00
Noah
f7216a144a Fix Rust 1.44 clippy warnings 2020-06-06 15:37:47 -05:00
Noah
6708cef2a4 Fix compilation on redox 2020-06-02 15:21:33 -05:00
TheAnyKey
50c0b99136 fixed scoping issue for nonlocals - now also indirect outer scopes are supported 2020-06-01 22:47:28 +00:00
TheAnyKey
097b6a1889 Implement Py38 named expression (PEP 572) (#1934)
* Initial implementation of named expression and  import  according CPython tests

* added new instruction with inversed evaluation order for dict comprehension, in other cases use regular evaluation order

* added further aspects to implementation, cleaned up, imported test from CPython

* implemented first parts of scoping enhancement and extended checks

* completion of name resolution ongoing, now more test passing, still warinings and cleanup required

* further optimization of name resolution in nested scopes

* Initialize the vm with imports from _io instead of io

* Add the OpenBSD support that I am smart enough to

* adapted grammer to full support, most test are passing now, esp. all invalids are passed. Cleaned up in symboltable

* more conditional compiling, this time for errors

* rustfmt was not pleased

* premature push, whoops

* Add expected_failure result type to jsontests

* Initial implementation of named expression and  import  according CPython tests

* added new instruction with inversed evaluation order for dict comprehension, in other cases use regular evaluation order

* added further aspects to implementation, cleaned up, imported test from CPython

* implemented first parts of scoping enhancement and extended checks

* completion of name resolution ongoing, now more test passing, still warinings and cleanup required

* further optimization of name resolution in nested scopes

* adapted grammer to full support, most test are passing now, esp. all invalids are passed. Cleaned up in symboltable

* Fixed nameing convention violation and removed unnecessary information from symbol resolution. Added some more comments.

* Fixed nameing convention violation and removed unnecessary information from symbol resolution. Added some more comments.

Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
Co-authored-by: Reuben Staley <lighthousemaniac@gmail.com>
2020-06-01 11:22:15 +02:00
Jeong YunWon
1257331101 Fix unpack_ex related messages 2020-05-30 01:07:38 +00:00
Jeong YunWon
3f1b9c6096 Fix SyntaxError visualize order: message first location later 2020-05-30 01:07:38 +00:00
Jeong YunWon
0d139f9942 comprehension starred expression compatibility 2020-05-30 01:07:38 +00:00
Jeong YunWon
a77e0b8587 Distinguish MultipleStarArgs and InvalidStarArgs compile errors 2020-05-30 01:07:38 +00:00
Jeong YunWon
3f2b414fcc Merge pull request #1843 from RustPython/coolreader18/clippy-fixes
Fix some clippy lints that were previously 'allow'ed
2020-04-27 00:10:01 +09:00
Jeong YunWon
a9ea22ec2b Merge pull request #1880 from HyeockJinKim/issue1879
Remove unused variable
2020-04-26 00:12:26 +09:00
HyeockJinKim
e85baf4dfb Remove unused variable
Removed unused `is_param` variable for symbol.

Closes RustPython#1879
2020-04-25 13:59:54 +09:00
Noah
aba7359b36 Disable the unpack optimization 2020-04-24 15:14:58 -05:00
Noah
c27abf862f Fix some clippy lints that were 'allow'ed 2020-04-05 14:55:51 -05:00
Noah
1e12aa8afe Merge pull request #1834 from RustPython/coolreader18/jsontests
Add json output for CPython tests
2020-04-04 11:52:04 -05:00
Noah
8df7d73211 Fix clippy lints 2020-04-03 12:34:01 -05:00