Commit Graph

6874 Commits

Author SHA1 Message Date
Kangzhi Shi
c2d46b9df3 remove comment 2020-10-16 07:30:59 +02:00
Kangzhi Shi
c3484c612c fix buffer resizable non-thread safe 2020-10-15 17:47:32 +02:00
Jeong YunWon
5a2e9a065e Merge pull request #2285 from youknowone/builtins
Clean up vm::builtins
2020-10-13 15:47:53 +09:00
Jeong YunWon
e823d95ce5 split vm::builtins::iter utility functions to vm::iterator 2020-10-13 15:42:11 +09:00
Jeong YunWon
19ed4f85e7 clean up vm::builtins 2020-10-13 15:42:11 +09:00
Noah
61ded76298 Merge pull request #2286 from youknowone/cargo-update
cargo update
2020-10-12 13:58:26 -05:00
Noah
5ffabb404f Merge pull request #2282 from qingshi163/dev2
Reimplement bytes fromhex
2020-10-12 12:43:05 -05:00
Jeong YunWon
ba82e31c8d cargo update 2020-10-13 02:15:57 +09:00
Kangzhi Shi
d14b0cf93b bytes fromhex CPython compatible 2020-10-12 10:17:47 +02:00
Kangzhi Shi
21a9e05abc Reimplement bytes fromhex 2020-10-12 10:09:15 +02:00
Jeong YunWon
b2c0a69386 Merge pull request #2281 from youknowone/builtins
vm::obj -> vm::builtins and expose types right under builtins rather than each objxxx submodules
2020-10-12 12:41:45 +09:00
Jeong YunWon
ca9326f95d expose bulitins items on builtins module and hide submodules 2020-10-12 11:43:24 +09:00
Noah
9142bfb9b5 Merge pull request #2283 from qingshi163/dev3
test_bytes remove @skip for successed test
2020-10-11 12:26:30 -05:00
Kangzhi Shi
a3243da0d6 test_bytes remove @skip for successed test 2020-10-11 15:24:41 +02:00
Jeong YunWon
9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +09:00
Jeong YunWon
13bde3d7b4 vm::obj -> vm::builtins (broken) 2020-10-11 20:59:50 +09:00
Steve Shi
2d9b1d0649 Implement bytes.hex() with optional sep 2020-10-11 18:34:08 +09:00
Jeong YunWon
708da5790b Merge pull request #2250 from youknowone/funcargs
PyFuncArgs from rust tuple
2020-10-11 15:07:15 +09:00
Jeong YunWon
4da1b62c18 PyFuncArgs -> FuncArgs
which does not represent a single python object
2020-10-11 09:38:07 +09:00
Jeong YunWon
b0445396f4 compactize invoke args 2020-10-11 09:38:06 +09:00
Jeong YunWon
0d7738c708 PyFuncArgs from rust tuple 2020-10-11 09:35:15 +09:00
Jeong YunWon
597b7bd098 PyFuncArgs::{new, with_kwargs_names} 2020-10-11 09:35:15 +09:00
Jeong YunWon
4640be4c0d PyFuncArgs Kwargs defaults to IndexMap 2020-10-11 09:35:15 +09:00
Jeong YunWon
83f6dd7060 PyFuncArgs from Args 2020-10-11 09:35:15 +09:00
Jeong YunWon
68c907d9a2 Merge pull request #2274 from youknowone/clone-class
TypeProtocol::lease_class() as default class()
2020-10-11 09:34:38 +09:00
Jeong YunWon
a089c9b6d3 TypeProcotol::lease_class() -> TypeProtocol::class() 2020-10-11 09:11:58 +09:00
Jeong YunWon
0a8f1e14a8 TypeProcotol::class() -> TypeProtocol::clone_class() 2020-10-11 09:11:58 +09:00
Jeong YunWon
1c92f5d327 Merge pull request #2275 from youknowone/lease-class
more lease_class
2020-10-11 00:57:19 +09:00
Jeong YunWon
6e60915f46 more lease_class 2020-10-11 00:37:08 +09:00
Jeong YunWon
1c3d7ae057 Merge pull request #2251 from youknowone/type
clean up PyType
2020-10-10 18:07:49 +09:00
Jeong YunWon
54cfdf27dd Merge pull request #2226 from qingshi163/buffer_protocol
Implement Buffer Protocol
2020-10-10 18:06:14 +09:00
Kangzhi Shi
88f5466080 update memoryview eq 2020-10-10 17:01:00 +09:00
Kangzhi Shi
6058d653a8 memoryview hex 2020-10-10 17:01:00 +09:00
Kangzhi Shi
b48c5a2b52 BytesIO getbuffer; no more hack for pickle.py 2020-10-10 17:01:00 +09:00
Kangzhi Shi
49b2c19064 BytesIO readinto() 2020-10-10 17:01:00 +09:00
Kangzhi Shi
3fe8a30ca0 bytesinner from pytuple 2020-10-10 17:01:00 +09:00
Kangzhi Shi
275b727e9d memoryview __setitem__ 2020-10-10 17:01:00 +09:00
Kangzhi Shi
cf3572385c Fix more to pass unittest 2020-10-10 17:00:57 +09:00
Kangzhi Shi
e1ddbda4fc fix unittest test_array.test_buffer 2020-10-10 16:59:44 +09:00
Kangzhi Shi
4489ba1014 disable few test in test_xdrlib 2020-10-10 16:59:36 +09:00
Kangzhi Shi
2a4fbaa588 disable few test stdlib_struct 2020-10-10 16:59:29 +09:00
Kangzhi Shi
499d99794c Implement Buffer Protocol 2020-10-10 16:57:19 +09:00
Jeong YunWon
81581a9987 first_in_mro -> mro_find_map 2020-10-10 15:31:05 +09:00
Jeong YunWon
cd61824bbf PyType takes part of pyTypeRef impl 2020-10-10 15:31:01 +09:00
Jeong YunWon
59723c7d18 DerefToClass->DerefToType 2020-10-10 15:30:22 +09:00
Jeong YunWon
209d6be578 Merge pull request #2247 from youknowone/vm-len
vm._len and objsequence.rs -> sliceable.rs
2020-10-10 15:25:45 +09:00
Noah
ab3aa894fb Merge pull request #2259 from youknowone/str-iter
Optimize string iteartor
2020-10-10 01:22:34 -05:00
Noah
f2db43d8e2 Merge pull request #2265 from RustPython/coolreader18/json-scanstring
Implement _json.scanstring in Rust
2020-10-10 01:14:51 -05:00
Jeong YunWon
562bd6364b Merge pull request #2271 from RustPython/frozen-serde
Add derive(Serialize, Deserialize) to FrozenModule
2020-10-10 14:06:09 +09:00
Jeong YunWon
39058e2519 getitem for bytes/bytearray 2020-10-10 13:40:02 +09:00