Commit Graph

9579 Commits

Author SHA1 Message Date
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
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
Jack-R-lantern
d925880de8 Add testcase 2021-10-09 16:47:54 +09:00
Jeong YunWon
c83eb12d0a Merge pull request #3258 from youknowone/ascii-buffer
ArgAsciiBuffer
2021-10-09 16:27:47 +09:00
Jack-R-lantern
c852ce4455 fix: remove unwrap 2021-10-09 16:12:43 +09:00
Jack-R-lantern
ab3145eb1d pull main branch & merge 2021-10-09 16:08:10 +09:00
Jack-R-lantern
cf11f5aeea Add __contains__ in dict_items 2021-10-09 15:58:24 +09:00
Jeong YunWon
621383be3d Merge pull request #3255 from RustPython/update-wapm-manifest
Update wapm manifest
2021-10-09 14:39:53 +09:00
Jeong YunWon
6e39473fce Merge pull request #3257 from Dolpheyn/dict_keys_xor_and_or_sub
Add rxor, rand, ror and rsub operators in dict_keys
2021-10-09 14:30:13 +09:00
Dolpheyn
922d233faa Add rand, ror, rsub operators in dict_keys 2021-10-09 07:53:38 +08:00
Noa
c778480404 WAPM release script 2021-10-08 17:02:18 -05:00
Nixon Enraght-Moony
98aa4bbe06 Bless Tests
This was broken by 54ab9cb54a

Closes #3253
2021-10-08 23:01:28 +01:00
Noa
862d935026 Update wapm.toml 2021-10-08 15:52:36 -05:00
Jeong YunWon
7082abdce1 Merge pull request #3249 from joohongpark/test_dict
Add rand, ror, rsub operators in dict_items
2021-10-08 16:30:12 +09:00
Jeong YunWon
bff6393776 Merge pull request #3250 from DimitrisJim/ignore_cpy_specifics
Ignore CPython specific testing/template modules.
2021-10-08 15:10:32 +09:00
joohongpark
c2d6bef793 Add rand, ror, rsub operators in dict_items, remove test annotation 2021-10-08 14:44:39 +09:00
jfh
eb943a11be Move not_impl to extra_tests. 2021-10-08 00:14:40 +03:00
jfh
2d36e1dc2d Ignore CPython specific testing/template modules. [skip ci] 2021-10-07 22:50:07 +03:00
Jeong YunWon
4f9f939f3c Merge pull request #3221 from youknowone/pyref-intoobject
Remove PyRef::into_object()
2021-10-08 02:36:02 +09:00
Jeong YunWon
22cc4a1437 Merge pull request #3247 from DimitrisJim/scientific_formating_complex
Fix complex::repr to use floats_ops.
2021-10-08 02:35:28 +09:00
ChJR
296f18326e Make OSError subclass instead of itself 2021-10-08 02:33:44 +09:00
Jeong YunWon
10b83fc1b2 Merge pull request #3245 from DimitrisJim/doc_warnings
Fix warnings for doc build.
2021-10-08 01:59:19 +09:00
Jeong YunWon
e19609ced3 Use PyRef::into_object(vm) instead of into_ref(vm).into() combo 2021-10-08 01:56:02 +09:00
Jeong YunWon
86430f70d8 Remove PyIter::as_object 2021-10-08 01:56:02 +09:00
Jeong YunWon
4fb1cdb316 PyObjectWrap 2021-10-08 01:56:00 +09:00
Jeong YunWon
055bad342b impl AsRef<PyObjectRef> for PyRef<T> 2021-10-08 01:49:33 +09:00
Jeong YunWon
152cbc6b18 Use as_str to take &str form PyStr 2021-10-08 01:49:33 +09:00
Jim Fasarakis-Hilliard
9143e51b75 Merge pull request #3246 from youknowone/marshal
Make marshal.dumps ready ready for new contributors
2021-10-07 19:45:58 +03:00
jfh
21d08e53d7 Fix complex::repr to correctly print floats. 2021-10-07 19:18:09 +03:00
Jeong YunWon
51df324765 Make marshal.dumps ready ready for new contributors 2021-10-07 23:46:26 +09:00