Commit Graph

5970 Commits

Author SHA1 Message Date
Jeong YunWon
a0a73e5d97 format.rs owns related code 2020-07-23 06:06:13 +09:00
Jeong YunWon
d09488f159 Use ItemProtocol over vm.call_method("__getitem__") 2020-07-23 06:06:13 +09:00
Jeong YunWon
20812c61e9 Drop unused pub from cformat 2020-07-23 06:06:13 +09:00
Jeong YunWon
4dc39da128 cformat.rs owns related codes 2020-07-23 06:06:13 +09:00
Jeong YunWon
73877bcbbe refactor small codes 2020-07-23 06:05:49 +09:00
Jeong YunWon
d8876a1f7a Remove pystr::chars_len due to inaccessibility of cache 2020-07-23 04:15:39 +09:00
Jeong YunWon
0535d7a78d unify pystr py_pad 2020-07-23 04:09:25 +09:00
Jeong YunWon
4ab05249b1 pystr py_add 2020-07-23 03:41:53 +09:00
Jeong YunWon
5054615ac5 simplify str.isascii 2020-07-23 03:26:06 +09:00
Jeong YunWon
56850163a0 pystr py_iscase 2020-07-23 03:26:06 +09:00
Jeong YunWon
59beca2626 use BStr::repeat instead of original implementation 2020-07-23 03:26:06 +09:00
Jeong YunWon
26a43f9a63 zfill into pystr 2020-07-23 03:26:06 +09:00
Jeong YunWon
9ac8687373 Use to_owned when its intension is not display 2020-07-23 03:26:06 +09:00
Jeong YunWon
eeaf1d5092 {str,bytes}.join with pystr 2020-07-23 03:26:06 +09:00
Jeong YunWon
87e500a07b Merge pull request #2021 from RustPython/fix-mingw
Fix compilation on mingw/msys
2020-07-23 02:55:23 +09:00
Jeong YunWon
3f3a83c687 Merge pull request #1883 from youknowone/share-splitlines
Share str.splitlines and bytes.splitlines implementaion
2020-07-22 14:13:18 +09:00
Jeong YunWon
eb25ce6f2c Merge pull request #2016 from youknowone/sequence
Simplify SimpleSeq impls and remove duplicated length check for SeqMul
2020-07-22 14:12:58 +09:00
Noah
d52309255e Fix compilation on mingw/msys 2020-07-21 17:00:12 -05:00
Jeong YunWon
93c80ebe7d Remove redundant clone 2020-07-22 03:36:16 +09:00
Jeong YunWon
7f7e0ac770 unify sequence::cmp 2020-07-22 03:36:09 +09:00
Jeong YunWon
b677b88bdd sequence::cmp take DynPyIter instead of SimpleSeq
to avoid duplicated code generation for Box operation
2020-07-21 21:48:46 +09:00
Noah
a742ba01fa Merge pull request #2017 from BolunThompson/init_subclass
Implementation of __init_subclass__
2020-07-21 01:14:49 -05:00
Bolun Thompson
dd9eb28eb8 formatting 2020-07-20 20:14:12 -07:00
Bolun Thompson
3f7ad38458 Update vm/src/obj/objtype.rs
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2020-07-20 20:14:12 -07:00
Bolun Thompson
94bafbb1ea Refactored unecessary code out and calls __get__ descriptor when needed 2020-07-20 20:14:12 -07:00
Bolun Thompson
8cccf13c80 Implemented kwargs on __init_subclass__ 2020-07-20 20:14:12 -07:00
Bolun Thompson
bb433bfd51 Mark expected failures and skipped tests 2020-07-20 20:13:49 -07:00
Bolun Thompson
8e52c29e3b Add test_subclassinit.py from CPython 3.8.5 2020-07-20 20:12:43 -07:00
Bolun Thompson
05bd893e3d Partial support for __init_subclass__ dunder method.
This doesn't support passing kwargs to __init_subclass__.
2020-07-20 12:47:03 -07:00
Jeong YunWon
eedc37efa4 Merge pull request #2015 from hyperbora/more-tests
Add CPython urlparse test
2020-07-21 03:50:46 +09:00
hyperbora
91e8695c93 Mark unsupported tests 2020-07-20 20:51:11 +09:00
Jeong YunWon
826dc900f8 SeqMul check non-zero length only once 2020-07-20 05:57:09 +09:00
Jeong YunWon
f40b19927f Simplify SimpleSeq 2020-07-20 05:57:06 +09:00
Jeong YunWon
e674b9f99e Use .to_usize().unwrap_or(0) rather than .max(0) 2020-07-20 05:49:59 +09:00
Jeong YunWon
5cfdf1db2c pystr::py_splitlines 2020-07-20 02:52:11 +09:00
Jeong YunWon
62277faa44 Share str.splitlines and bytes.splitlines implementaion 2020-07-20 01:18:43 +09:00
Jeong YunWon
5d1b821e2a Merge pull request #1975 from RustPython/dev-opt-level
Build dependencies with opt-level 3 always
2020-07-20 00:32:55 +09:00
Jeong YunWon
7629a2d202 Run rust&python ilnt in same flow 2020-07-19 23:44:08 +09:00
Jeong YunWon
b132de110f Fix Cargo.lock and add dependency for wasm 2020-07-19 23:44:08 +09:00
hyperbora
4387d96ffe add test_urlparse from CPython 3.8.4 2020-07-19 22:12:10 +09:00
Jeong YunWon
9dcca68088 Merge pull request #2012 from clemado1/develop
Implement remove method of array
2020-07-19 17:44:01 +09:00
clemado1
53a116f9f1 Implement remove method of array 2020-07-19 16:31:07 +09:00
Jeong YunWon
8bee6203d0 Build dependencies with opt-level 3 always 2020-07-19 03:27:54 +09:00
Jeong YunWon
0c11b8bf67 Merge pull request #1963 from palaviv/cpython-tests
Add CPython import tests
2020-07-19 03:00:31 +09:00
Jeong YunWon
d71dc69577 Merge pull request #2007 from youknowone/test-zlib
test_zlib.py
2020-07-19 02:54:56 +09:00
Aviv Palivoda
4ba6b476aa Wrap unlock in unsfae 2020-07-18 17:26:05 +03:00
Aviv Palivoda
5b51495119 Merge pull request #2011 from yanganto/issue-1555
handle nesting brackets in the spec of format
2020-07-18 17:08:47 +03:00
Aviv Palivoda
fa76d10489 Skip macos failing test 2020-07-18 17:04:35 +03:00
Aviv Palivoda
eba1d722ea Remove global import lock in WASM 2020-07-18 17:04:35 +03:00
Aviv Palivoda
4fe66e2b9a Remove bad_coding2.py 2020-07-18 17:04:35 +03:00