snowapril
46347aa6d4
fix PyMethod::get to use vm.get_attribute
...
As cpython implementation, if `getattro` slot is not
`PyBaseObject::getattro`, then use `vm.get_attribute` not slot method.
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
snowapril
1bff6a38d1
add decorators on failed tests
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
snowapril
8d0cefeb64
update test_exceptions.py from cpython 3.10 for suggestion feature
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
snowapril
1ee74403e2
Add name field on PyNameError
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
snowapril
ff54d8ae53
Add name and obj attributes to PyAttributeError
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
snowapril
db0d9df53f
Add offer_suggestions on write_exception_inner
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
snowapril
6339390629
Implement keyword suggestion routine
...
`suggestions.rs` is almost porting of implementation of
[this](https://github.com/python/cpython/pull/16856 ) and
[this](https://github.com/python/cpython/pull/25397 ).
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-10-20 10:19:42 +09:00
Noa
68379da4c9
Merge pull request #3332 from youknowone/error-control
...
Handle error control flow in single branch
2021-10-19 15:49:47 -05:00
Jim Fasarakis-Hilliard
850187f246
Merge pull request #3343 from ChJR/feature/relocate_length
...
Relocate vm.obj_len to obj.length
2021-10-19 22:05:03 +03:00
Jim Fasarakis-Hilliard
fcb6551443
Merge pull request #3342 from ChJR/feature/relocate_hash
...
Relocate vm._hash to obj.hash
2021-10-19 22:04:23 +03:00
ChJR
32e693f234
Replace vm.obj_len to obj.length
2021-10-20 02:33:46 +09:00
ChJR
83c3644add
Replace vm._hash to obj.hash
2021-10-20 02:29:58 +09:00
Jim Fasarakis-Hilliard
c406b54e89
Merge pull request #3341 from AP2008/relocate-del_attrs
...
Relocate `vm.del_attr` to `obj.del_attr`
2021-10-19 20:27:56 +03:00
ChJR
0d32e1ae16
Relocate vm._hash to obj.hash
2021-10-20 02:10:36 +09:00
ChJR
6b14756542
Relocate vm.obj_len to obj.length
2021-10-20 02:08:45 +09:00
Aratrik
72c3a7027c
Relocate vm.del_attr to obj.del_attr
2021-10-19 22:01:07 +05:30
Jeong YunWon
6e6a9f6d75
Merge pull request #3339 from DimitrisJim/bench_locals
...
Use as_object in benchmark locals.
2021-10-19 22:53:06 +09:00
jfh
6ce591d90c
Use as_object in benchmark locals.
2021-10-19 16:50:27 +03:00
Jim Fasarakis-Hilliard
de41d4c5ca
Merge pull request #3338 from AP2008/relocate-set_attrs
...
Relocate `vm.set_attr` to `obj.set_attr`
2021-10-19 16:25:54 +03:00
Aratrik
d6fc20f64e
Relocate vm.set_attr to obj.set_attr
2021-10-19 14:50:53 +05:30
Jeong YunWon
7bcf2c3e39
Merge pull request #3014 from leesungbin/underscore_grammar
...
Solve some lexical error with underscore
2021-10-19 08:37:03 +09:00
Jim Fasarakis-Hilliard
dd3d289684
Merge pull request #3336 from DimitrisJim/install_pip
...
Better information for install pip if ssl is disabled.
2021-10-18 16:49:00 +03:00
jfh
606e33fe4e
Better information for install pip if ssl is disabled.
2021-10-18 15:26:05 +03:00
Jim Fasarakis-Hilliard
ae358af30e
Merge pull request #3335 from DimitrisJim/dict_repr_with_capacity
...
Use dictionary length for capacity.
2021-10-18 15:06:45 +03:00
jfh
d01e222d95
Use dictionary length for capacity.
2021-10-18 14:11:37 +03:00
Jeong YunWon
f35284cc67
Handle error control flow in single branch
2021-10-18 15:36:52 +09:00
Jeong YunWon
7f6e016526
Merge pull request #3282 from youknowone/remove-ref
...
Whitelist special-enough types to have PyRef aliases
2021-10-18 14:44:29 +09:00
Noa
40397a4208
Merge pull request #3096 from RustPython/ast-3.9
...
__future__.annotations
2021-10-17 22:22:06 -05:00
Noa
4087fa1d6e
Unmark passing tests
2021-10-17 21:55:34 -05:00
Noa
0093a1948f
Don't compile badsyntax_ files for freeze-stdlib
2021-10-17 21:55:34 -05:00
Noa
b2c3a62b91
Add test.badsyntax_pep3120 from CPython 3.9
2021-10-17 21:55:34 -05:00
Noa
f336a00177
Fix rustpython-parser tests
2021-10-17 21:55:34 -05:00
Noa
2291ddcb02
Mark some ui tests as failing
2021-10-17 21:55:34 -05:00
Noa
06343e2b6e
Add test_future.py and associated files from CPython 3.9
2021-10-17 21:55:34 -05:00
Noa
0cd2b0787a
Keep u-prefixed strings through to the AST
2021-10-17 21:55:34 -05:00
Noa
78ef88b92a
Update __future__.py to 3.10
2021-10-17 21:55:28 -05:00
Noa
f6101a5821
Add the __future__.annotations feature
2021-10-17 21:55:28 -05:00
Noa
27540e1d35
Add unparse feature to ast
2021-10-17 21:55:27 -05:00
Noa
44d86c7de9
Update ast.py to CPython 3.9
2021-10-17 21:54:52 -05:00
Noa
7c68ad8a72
Make ast.AST a basetype
2021-10-17 21:54:52 -05:00
Noa
cde42dba26
Generate ast classes for top-level ast kinds, e.g. stmt
2021-10-17 21:54:52 -05:00
Jeong YunWon
c05e8eb48c
Remove PySliceRef
2021-10-18 05:17:09 +09:00
Jeong YunWon
997f85ff54
Less PyListRef
2021-10-18 05:15:56 +09:00
Jeong YunWon
7377664bea
Remove PyFloatRef
2021-10-18 05:14:54 +09:00
Jeong YunWon
cd2edbc2a5
Merge pull request #3329 from fanninpm/cleanup-list-of-tests
...
Cleanup lists of tests in ci.yaml
2021-10-17 23:17:06 +09:00
Jeong YunWon
d703e268ee
Merge pull request #3331 from DimitrisJim/relocate_getattribute
...
Relocate `vm.get_attribute` to `obj.get_attr`
2021-10-17 23:12:59 +09:00
jfh
7bc10da154
Relocate vm.get_attribute to obj.get_attr.
2021-10-17 10:30:21 +03:00
Jim Fasarakis-Hilliard
7af58dd822
Merge pull request #3328 from youknowone/del-error-cold
...
__del__ failure is a cold function
2021-10-17 07:48:46 +03:00
Padraic Fanning
51b16d3ef7
Deduplicate test_set
2021-10-16 21:13:18 -04:00
Padraic Fanning
082be10a95
Sort Windows-only test skips
2021-10-16 21:13:17 -04:00