Commit Graph

1486 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
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
Jeong YunWon
9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +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
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
a089c9b6d3 TypeProcotol::lease_class() -> TypeProtocol::class() 2020-10-11 09:11:58 +09:00
Jeong YunWon
6e60915f46 more lease_class 2020-10-11 00:37:08 +09:00
Kangzhi Shi
88f5466080 update memoryview eq 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
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
499d99794c Implement Buffer Protocol 2020-10-10 16:57:19 +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
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
699c801354 Fix sequence index utilities not to use get_ prefix 2020-10-10 13:40:02 +09:00
Jeong YunWon
6d8c987c45 vm._len and objsequence.rs -> sliceable.rs 2020-10-10 13:39:12 +09:00
Jeong YunWon
75161a63de Merge pull request #2248 from youknowone/lease-class
lease_class as much as possible
2020-10-10 13:38:19 +09:00
Jeong YunWon
aa58b6331e Merge pull request #2252 from RustPython/coolreader18/misc-altair-fixes
Misc fixes found while trying to get Altair to work
2020-10-10 13:31:40 +09:00
Jeong YunWon
ef01e887c9 Fix clippy error 2020-10-10 13:04:12 +09:00
Noah
ced4b3e361 Fix rustc hanging 2020-10-09 22:24:10 -05:00
Noah
11222fd16f Fix clippy error 2020-10-09 17:04:41 -05:00
Noah
e2bc53f625 Merge pull request #2239 from RustPython/coolreader18/unified-common-locks
Unified lock types for rustpython_common
2020-10-07 19:36:06 -05:00
Noah
3677e063fa Allow io.open to take a PyPathLike 2020-10-07 19:29:39 -05:00
Noah
1af10cc96e Add marshal.{load,dump} 2020-10-07 19:28:19 -05:00
Noah
5af65ad128 A bit more tidying 2020-10-07 18:23:31 -05:00
Noah
dcb12abbae Don't double loop over chunks 2020-10-07 13:32:12 -05:00
Jeong YunWon
465702dda6 Merge pull request #2266 from ArniDagur/isqrt
Implement math.isqrt in Rust
2020-10-07 20:58:40 +09:00
Árni Dagur
72608545f3 Implement math.isqrt in Rust 2020-10-06 17:58:58 +00:00
Noah
1f4f407d5d Implement json.decoder.scanstring in Rust 2020-10-04 13:04:43 -05:00
hyperbora
5b6ca1e96d implement socket.getservbyname 2020-10-04 15:23:32 +09:00
Noah
53814a27c2 Use String::from_utf8_unchecked for encode_basestring 2020-10-04 00:01:51 -05:00
Noah
2e3d76679f Fix logic bug in serde_json.rs 2020-10-03 23:59:07 -05:00
hyperbora
c6ea8f9907 fix math.acos and math.asin 2020-10-03 22:37:43 +09:00
hyperbora
a1437a5be5 fix math.sqrt 2020-10-03 12:37:07 +09:00
Noah
acd0bf5434 Make the FromArgs derive less verbose 2020-10-01 17:42:07 -05:00
Jeong YunWon
9bee7c48df Merge pull request #2254 from youknowone/fix-clippy
Fix nightly clippy
2020-10-01 14:34:59 +09:00
Jeong YunWon
3cd0a1118d Fix nightly clippy 2020-10-01 07:08:55 +09:00
Noah
d8a73ead42 Make it unnecessary to import PyClassImpl for #[pymodule] 2020-09-30 11:33:22 -05:00
Jeong YunWon
fe5767a975 lease_class as much as possible 2020-09-30 11:41:06 +09:00
Noah
a950aa6b7f Make serde_json an optional optimization for the json module 2020-09-28 23:45:53 -05:00
Noah
f0318141c0 Add vm.start_thread() and related functions 2020-09-28 00:15:30 -05:00
Noah
dbbdd75b31 Rename rustpython_common::{cell -> lock} 2020-09-26 23:39:10 -05:00
Noah
3d3889f0df Add a getattro slot 2020-09-25 19:46:42 -05:00
Jeong YunWon
59db19d1ea PyClass -> PyType 2020-09-26 07:32:38 +09:00