Commit Graph

9910 Commits

Author SHA1 Message Date
zetwhite
a3fed90fc2 Implements Comparable for PyDictKeys, PyDictItems 2021-10-24 12:26:46 +09:00
Jeong YunWon
7f0ba0c176 Merge pull request #3364 from moreal/relocate-object-repr
Relocate `vm.to_repr` to `object.repr`
2021-10-24 01:14:56 +09:00
ChJR
e139364a60 Relocate vm.issubclass to obj.is_subclass 2021-10-24 01:05:32 +09:00
Moreal
bc05b98ca6 Relocate vm.to_repr to object.repr 2021-10-23 21:16:28 +09:00
Jeong YunWon
5dbf753200 Merge pull request #3362 from fanninpm/fix-custom-text-test-runner
Delete `partial` causing custom runner failure
2021-10-23 16:14:08 +09:00
Padraic Fanning
9fdd76c1dd Delete partial causing custom runner failure 2021-10-22 18:16:47 -04:00
Jeong YunWon
9ece24fbce Merge pull request #3361 from youknowone/result-like
Update result-like to 0.4
2021-10-23 05:56:48 +09:00
Jeong YunWon
1047cb573d Update result-like to 0.4 2021-10-23 02:49:59 +09:00
Jim Fasarakis-Hilliard
54d5966895 Merge pull request #3360 from moreal/remove-py-module-macro
Remove `py_module!` macro
2021-10-22 17:12:05 +03:00
Moreal
72a1dee5ad Remove py_module! macro 2021-10-22 22:45:38 +09:00
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