Commit Graph

1495 Commits

Author SHA1 Message Date
Rodrigo Oliveira
00920babba Add socket sendfile function 2020-10-26 14:55:22 -03:00
Jeong YunWon
57bf7afdd9 every PyStructSequence is StaticType 2020-10-20 02:29:33 +09:00
Jeong YunWon
3b78c6068b vm.class() only for non-static types 2020-10-20 02:29:31 +09:00
Jeong YunWon
ecf1120bee Clean up static-type affected apis 2020-10-20 02:29:28 +09:00
Jeong YunWon
4add0220ae PyValue::class() returns ref 2020-10-20 02:29:20 +09:00
Jeong YunWon
34a2038e17 Use StaticType::static_class() rather than vm.class 2020-10-20 01:47:53 +09:00
Jeong YunWon
5b32064cd6 trait StaticType 2020-10-20 01:43:39 +09:00
Jeong YunWon
91eb4d42e0 direct call io_open for initialization 2020-10-19 20:30:29 +09:00
Noah
b0f9589471 Update dependencies 2020-10-16 20:49:00 -05:00
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