Commit Graph

9888 Commits

Author SHA1 Message Date
snowapril
f491bb8fc4 commented out on missing module in rustpython
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
4a3dab0b41 add test_genericalias.py from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
Jeong YunWon
6138cb4476 Merge pull request #3357 from coolreader18/edition2021
Migrate to 2021 edition
2021-10-22 08:21:45 +09:00
Noa
a09b44031b Merge pull request #3356 from DimitrisJim/fake_builtin_gc
Remove Python gc stub, add rust stub.
2021-10-21 17:12:47 -05:00
Noa
53c261a19b Switch to array.into_iter() 2021-10-21 17:12:37 -05:00
Noa
09e9ea91e7 TryFrom, TryInto, FromIterator are in prelude now 2021-10-21 17:04:19 -05:00
Noa
33b5827c4d Disable redoxer action temporarily 2021-10-21 17:04:07 -05:00
Jeong YunWon
815e1b6648 Merge pull request #3355 from moreal/use-pymodule-attribute-wasm-window
Remove usage of `py_module!` from `_window`
2021-10-22 05:35:10 +09:00
Jeong YunWon
b394c0a8db Merge pull request #3354 from moreal/use-pymodule-attribute-wasm-js
Remove usage of `py_module!` from _js
2021-10-22 05:34:33 +09:00
Jeong YunWon
bd83930421 Merge pull request #3353 from moreal/use-pymodule-attribute-wasm-browser
Remove usage of `py_module!` from _browser
2021-10-22 05:33:29 +09:00
Noa
80688abfcc Fix new clippy lint 2021-10-21 11:59:44 -05:00
jfh
103195b277 Remove Python gc stub, add rust stub. 2021-10-21 19:56:20 +03:00
Noa
ee8b11f5d2 Migrate to 2021 edition 2021-10-21 11:46:24 -05:00
Moreal
5a16ab8d20 Remove usage of py_module! from _window 2021-10-21 22:05:39 +09:00
Moreal
1474c9e8b3 Remove usage of py_module! from _browser 2021-10-21 21:53:18 +09:00
Moreal
3f9c7901ee Remove usage of py_module! from _js 2021-10-21 21:48:26 +09:00
Jeong YunWon
dc4d269fbb Merge pull request #3307 from youknowone/pyptr
PyObjectPtr: no RC even through function pointers
2021-10-21 18:36:52 +09:00
Jeong YunWon
f76877347a Py -> PyObjectView 2021-10-21 18:04:13 +09:00
Jeong YunWon
b759808736 PyObj -> PyObject 2021-10-21 17:55:29 +09:00
Jeong YunWon
4e5f897f74 PyObject -> PyGenericObject 2021-10-21 17:42:56 +09:00
Jeong YunWon
d4feb2a6c5 incref -> to_owned 2021-10-21 17:29:34 +09:00
Noa
8dd18d97be PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T> 2021-10-21 16:49:01 +09:00
Jeong YunWon
e5a1c3b137 setattro uses PyObjectPtr 2021-10-21 16:31:22 +09:00
Jeong YunWon
70f8849f05 as_buffer uses ptr 2021-10-21 16:31:22 +09:00
Jeong YunWon
08b5768a82 iternext uses ptr 2021-10-21 16:31:22 +09:00
Jeong YunWon
ad7925cac6 rich_compare uses ptr 2021-10-21 16:31:22 +09:00
Jeong YunWon
113ad3bdea as_mapping uses ptr 2021-10-21 16:31:22 +09:00
Jeong YunWon
77b904ce64 __del__ uses ptr 2021-10-21 16:31:22 +09:00
Jeong YunWon
73650259ec Callable with ptr 2021-10-21 16:31:22 +09:00
Jeong YunWon
41b02809f9 PyObjectPtr for __hash__ 2021-10-21 16:31:22 +09:00
Jeong YunWon
16efb5d878 PyObjectPtr: no RC even through function pointers 2021-10-21 16:31:22 +09:00
Jeong YunWon
439923ac4b Merge pull request #3352 from DimitrisJim/ast_mod
`ast` uses `#[pymodule]`
2021-10-21 16:11:50 +09:00
jfh
388f278783 Remove usage of py_module macro from ast. 2021-10-21 08:20:00 +03:00
Jeong YunWon
fd2ba5159e Merge pull request #3204 from fanninpm/cleanup-skipped-tests
Clean up some skipped tests
2021-10-21 02:39:15 +09:00
Jeong YunWon
82fac6ce53 Merge pull request #3263 from Snowapril/suggestion
Implement keyword suggestion on `PyAttributeError` and `PyNameError` from cpython 3.10
2021-10-21 02:30:46 +09:00
Jeong YunWon
5ce05fcca0 Merge pull request #3330 from deantvv/uid-gid-from-object
posix: handle case -1 for `Uid` and `Gid`
2021-10-21 01:43:52 +09:00
Jeong YunWon
946f4ecc89 Merge pull request #3334 from DimitrisJim/namespace_fixes
Namespace fixes
2021-10-21 01:35:04 +09:00
Jeong YunWon
a83ad7aa1c Merge pull request #3337 from deantvv/fix-os-putenv
os: fix putenv
2021-10-21 01:33:37 +09:00
Dean Li
c56db2fafa os: fix putenv
Check key and value before calling `env::set_var`

From doc of `env::set_var`,
```

This function may panic if `key` is empty, contains an ASCII equals sign
`'='` or the NUL character `'\0'`, or when the value contains the NUL
character.
```
2021-10-20 23:15:39 +08:00
Dean Li
86920e21e5 posix: handle case -1 for Uid and Gid
For `Uid` and `Gid`, -1 means does not change the value.
2021-10-20 22:23:36 +08:00
Jeong YunWon
79ed45a4e5 Merge pull request #3350 from DimitrisJim/ci_build
Fix conflict from merges.
2021-10-20 15:37:07 +09:00
jfh
45b0fb3005 Fix conflict from merges. 2021-10-20 09:08:15 +03:00
Jim Fasarakis-Hilliard
0c07b7cbfc Merge pull request #3349 from AP2008/relocate-str
Relocate `vm.to_str` to `obj.str`
2021-10-20 08:54:24 +03:00
Jim Fasarakis-Hilliard
b7dab09b7d Merge pull request #3347 from AP2008/relocate-rich_compare
Relocate `vm.rich_compare` to `obj.rich_compare`
2021-10-20 08:49:40 +03:00
Jim Fasarakis-Hilliard
497eead8e9 Merge pull request #3344 from ChJR/feature/relocate_is_instance
Relocate vm.isinstance to obj.is_instance
2021-10-20 08:45:06 +03:00
Aratrik
fdd1baec65 Relocate vm.to_str to obj.str 2021-10-20 10:28:24 +05:30
Jim Fasarakis-Hilliard
a4ff86190b Merge pull request #3346 from youknowone/set-repr
set repr push to buffer directly
2021-10-20 07:54:08 +03:00
Aratrik
c427462554 Relocate vm.rich_compare to obj.rich_compare 2021-10-20 09:44:41 +05:30
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