Commit Graph

9900 Commits

Author SHA1 Message Date
Jim Fasarakis-Hilliard
7d1f75dd2f Merge pull request #3351 from Snowapril/fix-generic-alias
Add missing methods on `GenericAlias`
2021-10-22 16:32:18 +03:00
Jeong YunWon
17c59a3e2d Merge pull request #3359 from DimitrisJim/export_reusage_symbols
Export RUSAGE_* symbols, add test_resource
2021-10-22 21:15:09 +09:00
snowapril
d9f561caa2 add rich_compare on GenericAlias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
92b81e5dd8 update some test in test_typing from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
48d6ba154f add decorators on failed tests
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
8607519441 add missing methods for GenericAlias
* __mro_entries__
* __instancecheck__
* __reduce__
* __subclasscheck__
* Callable slot

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
dfc0cdfaf7 add exact type check and return generic alias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
b2eff4ae53 add missing __class_getitem__ from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
32ba09c407 add missing __class_getitem__ in several types
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
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
jfh
2299878395 Mark failing resourse tests. 2021-10-22 10:33:18 +03:00
jfh
9ab71fee02 Add test_resource from Python 3.8 2021-10-22 10:29:30 +03:00
jfh
a8b00ef2b1 Export RUSAGE_* symbols. 2021-10-22 10:17:28 +03: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