Commit Graph

9626 Commits

Author SHA1 Message Date
Moreal
22eb3018cf Deprecate AnyStr::chars_len again
I implemented 84e5f4212d6a5707748293b9603493661ac33355 again but I deprecate
the method again because it is too expensive.
See also https://github.com/RustPython/RustPython/pull/3164#discussion_r725438699
2021-10-13 00:39:04 +09:00
Moreal
868f104a98 Use cheaper operations by whether it has subrange 2021-10-13 00:39:04 +09:00
Moreal
7946b02202 Unmark fixed tests 2021-10-13 00:39:04 +09:00
Moreal
76ceb59b2b Fix PyStr::startswith 2021-10-13 00:39:04 +09:00
Jeong YunWon
e1d56f76dd Merge pull request #3279 from DimitrisJim/flaky_strtod_test
Skip flaky strtod test function.
2021-10-12 14:36:08 +09:00
jfh
cea8abbba8 Skip flaky strtod test function. 2021-10-12 05:10:49 +03:00
Jeong YunWon
79feeb07f6 Merge pull request #3278 from youknowone/pymodule2
_csv, unicodedate uses #[pymodule]
2021-10-12 10:21:41 +09:00
Jeong YunWon
d9e801ed0b Fix sys.__doc__ 2021-10-12 07:10:04 +09:00
Jeong YunWon
054553c59c unicodedata uses #[pymodule] 2021-10-12 07:04:28 +09:00
Jeong YunWon
9d3ce7b5af _csv uses #[pymodule] 2021-10-12 07:04:28 +09:00
Jeong YunWon
71f988e519 Merge pull request #3277 from youknowone/pymodule
_thread/_weakref uses pymodule
2021-10-12 07:03:59 +09:00
Jeong YunWon
5d740cfc9a _weakref uses #[pymodule] 2021-10-12 06:19:56 +09:00
Jeong YunWon
aff0d47090 _thread uses #[pymodule] 2021-10-12 06:19:56 +09:00
Jeong YunWon
e7b8b899e1 Merge pull request #3276 from youknowone/sys-pymodule
sys uses #[pymodule]
2021-10-12 06:19:41 +09:00
Jeong YunWon
47997b7af7 sys uses #[pymodule] 2021-10-12 05:39:42 +09:00
Jeong YunWon
63ab4e454b Better error messages for pymodule 2021-10-12 05:34:46 +09:00
Jeong YunWon
417708e3c6 Merge pull request #3275 from youknowone/imp-pymodule
`_imp` uses #[pymodule]
2021-10-12 04:22:48 +09:00
Jeong YunWon
e052cd8ef6 Merge pull request #3274 from youknowone/pwd-pymodule
use #[pymodule] for pwd
2021-10-12 03:50:40 +09:00
Jeong YunWon
0a73b81785 _imp uses #[pymodule] 2021-10-12 03:10:32 +09:00
Jeong YunWon
81b737b41f use #[pymodule] for pwd 2021-10-12 02:55:30 +09:00
Jeong YunWon
fd71647a37 Merge pull request #3271 from Jack-R-lantern/dict_key/__contains__
Add contains in dict_keys
2021-10-12 02:37:13 +09:00
Jeong YunWon
ec91e6e730 Merge pull request #3270 from youknowone/new-list-return-type
ctx.new_list returns PyLsitRef
2021-10-12 02:15:20 +09:00
Jeong YunWon
05dca7a7c8 ctx.new_list returns PyLsitRef 2021-10-12 01:22:36 +09:00
Jack-R-lantern
ab43f91fcb Add contains in dict_keys 2021-10-12 01:19:31 +09:00
Jeong YunWon
0ac29c02a7 Merge pull request #3269 from youknowone/new-return-type
new_{utf8_str, ascii_literal} -> new_str again
2021-10-11 23:32:55 +09:00
Jeong YunWon
a42d547a3f new_{utf8_str, ascii_literal} -> new_str again 2021-10-11 21:28:14 +09:00
Jeong YunWon
273729d6f6 Merge pull request #3264 from youknowone/new-return-type
Make PyContext::new* to return PyRef instead of PyObjectRef
2021-10-11 17:13:18 +09:00
Jeong YunWon
379cf2db6f new_bytes return PyRef 2021-10-11 16:10:01 +09:00
Jeong YunWon
ef6c066fb6 Remove new_bytearray 2021-10-11 16:10:01 +09:00
Jeong YunWon
0b56213fdf clean up new_code_object 2021-10-11 16:10:01 +09:00
Jeong YunWon
b86bd591f1 new_base_object assertion for HAS_DICT flag 2021-10-11 16:10:01 +09:00
Jeong YunWon
5803439f84 clean up set 2021-10-11 16:10:01 +09:00
Jeong YunWon
5cd375aaa9 clean up functions and methods 2021-10-11 16:10:01 +09:00
Jeong YunWon
589d2b0e1b remove vm.ctx.new_staticmethod 2021-10-11 16:10:01 +09:00
Jeong YunWon
d4b7a03cdc Merge pull request #3267 from DimitrisJim/fix_build_error
Fix build error.
2021-10-11 15:58:07 +09:00
jfh
a7bd654d0d Use PyTupleRef in reduce return type. 2021-10-11 09:56:00 +03:00
Jeong YunWon
a0b3c36621 Merge pull request #3266 from DimitrisJim/view_set_ops
Add trait for common set operations on set-like dictionary views.
2021-10-11 15:19:00 +09:00
Jeong YunWon
b986e6ba85 Merge pull request #3064 from qingshi163/array-pickle
Implement __reduce__ and __reduce_ex__ for array
2021-10-11 15:18:02 +09:00
jfh
200f97d06b Add trait for common set operations on set-like dictionary views. 2021-10-11 06:18:02 +03:00
Jeong YunWon
ddf485c9ac Merge pull request #3265 from youknowone/wasi
Fix wasi build
2021-10-11 06:10:42 +09:00
Jeong YunWon
8515779589 Fix wasi build 2021-10-11 04:39:02 +09:00
Jeong YunWon
6adf14bb88 Merge pull request #3262 from youknowone/new-return-type
vm.ctx.new_int returns PyInt and so on
2021-10-11 03:59:14 +09:00
Jeong YunWon
054e13de11 remove vm.ctx.new_namespace 2021-10-11 02:01:14 +09:00
Jeong YunWon
cdd38488f8 allow AsciiStr/AsciiString -> PyStr conversion 2021-10-11 02:01:14 +09:00
Jeong YunWon
afe9b9cde0 vm.ctx.new_bool returns PyIntRef 2021-10-11 02:01:14 +09:00
Jeong YunWon
2c53e8d025 vm.ctx.new_complex -> PyComplex::new_ref 2021-10-11 01:06:08 +09:00
Jeong YunWon
616dfc19e2 vm.new_tuple to convert rust tuple to python tuple 2021-10-11 01:06:07 +09:00
Jeong YunWon
40379a9bc1 new_float returns PyFloat 2021-10-11 01:05:38 +09:00
Jeong YunWon
c9216cbef4 new_bigint returns PyIntRef 2021-10-11 01:05:38 +09:00
Jeong YunWon
741cfea565 vm.ctx.new_int returns PyInt 2021-10-11 01:05:38 +09:00