Commit Graph

9607 Commits

Author SHA1 Message Date
Jeong YunWon
63ab4e454b Better error messages for pymodule 2021-10-12 05:34:46 +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
Jeong YunWon
a86769eec0 Merge pull request #2084 from skinny121/ascii_bytes_like
Refactor struct module
2021-10-10 22:14:04 +09:00
Kangzhi Shi
ea69dc53d2 remove test that fail on CPython 2021-10-10 14:48:30 +02:00
Kangzhi Shi
cbd7c59329 Fix unicode array pickling 2021-10-10 14:43:34 +02:00
Kangzhi Shi
de47cd0acb Impl __reduce_ex__ with _array_reconstructor 2021-10-10 14:43:20 +02:00
Kangzhi Shi
ff0adc1204 Impl __reduce__ for array 2021-10-10 14:43:16 +02:00
Jeong YunWon
fbbefed813 pystruct::IntoStructFormatBytes to take str or bytes for format 2021-10-10 20:09:42 +09:00
Ben Lewis
6070af3240 Use buffer args for _struct 2021-10-10 18:39:03 +09:00
Jeong YunWon
7ff974eb0b Merge pull request #3261 from Snowapril/fix-issue-3232
Modify `PyType::name` method to return `BorrowedValue<str>`
2021-10-10 17:42:16 +09:00
Jeong YunWon
f85ffd2118 Use implciit property name 2021-10-10 17:42:01 +09:00
snowapril
1deb59ce40 modify PyType::name caller codes to use BorrowedValue
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-10 16:07:24 +09:00
snowapril
945d330b9c impl fmt::Display for BorrowedValue<str>
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-10 15:38:45 +09:00
snowapril
caec579aca add extra name method return BorrowedValue<str>
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-10 15:38:45 +09:00
Jeong YunWon
5db4a23874 Merge pull request #3254 from aDotInTheVoid/bless
Bless Tests
2021-10-10 14:58:55 +09:00
Jeong YunWon
eaae134356 Merge pull request #3259 from Jack-R-lantern/__contains__
Add contains in dict_items
2021-10-10 14:01:11 +09:00
Jack-R-lantern
a0a61a6722 Add __contains__ in dict_items 2021-10-10 07:51:24 +09:00
Jack-R-lantern
5a8c6ad713 Add __contains__ in dict_items 2021-10-09 17:53:05 +09:00
Jack-R-lantern
8056604102 Add __contains__ in dict_items 2021-10-09 17:48:55 +09:00
Jack-R-lantern
aef89ceaec Add __contains__ in dict_items 2021-10-09 17:32:03 +09:00
Jack-R-lantern
d59d5e17e6 remove file 2021-10-09 16:54:32 +09:00