Commit Graph

1350 Commits

Author SHA1 Message Date
Steve Shi
ff05200faf Merge branch 'master' into dev3 2020-08-31 19:28:09 +02:00
Jeong YunWon
cc25db9551 Merge pull request #2170 from qingshi163/dev
Implement array setitem by slice
2020-09-01 00:20:57 +09:00
Kangzhi Shi
1150f507e2 Fix: array with float type should accept integer parameter 2020-08-31 11:48:50 +02:00
Kangzhi Shi
5a21bc2b61 Clone only when necessary 2020-08-31 08:49:27 +02:00
Noah
446bf76a46 Merge pull request #2171 from qingshi163/dev2
Implement array __repr__
2020-08-30 16:32:19 -05:00
Kangzhi Shi
6068ab1314 Replace map->join with Itertools::format 2020-08-30 21:32:58 +02:00
Kangzhi Shi
187afa4e4a Implement array __repr__ 2020-08-30 19:28:26 +02:00
Kangzhi Shi
ff7c8c94f7 fix rustfmt 2020-08-30 17:17:17 +02:00
Kangzhi Shi
1922725af5 Implement array setitem by slice 2020-08-30 16:51:52 +02:00
Jeong YunWon
79964b0f48 Merge pull request #2167 from hyperbora/extend-the-socket-module
add gethostbyname function
2020-08-30 19:31:17 +09:00
Jeong YunWon
d2b35af43b Merge pull request #2168 from minoring/impl-os.abort
Implement os.abort
2020-08-30 17:10:07 +09:00
hyperbora
92d8e2c8da add os.getcwdb function 2020-08-30 14:56:28 +09:00
minoring
d2397f440c Implement os.abort 2020-08-30 14:35:14 +09:00
hyperbora
c30fabddee add gethostbyname function 2020-08-30 09:30:13 +09:00
Steve Shi
6073151965 Implement array getitem by slice 2020-08-29 00:30:09 +09:00
Ben Lewis
3c3711c6fc Fix clippy warning 2020-08-28 07:43:18 +12:00
Noah
edb9df8071 Use timsort for the list sort algorithm 2020-08-26 21:49:44 -05:00
Jeong YunWon
f8a5cc4b23 Remove type clone functions from vm.ctx
which misleads to clone types when we don't need.
2020-08-23 20:26:37 +09:00
Jeong YunWon
dded3ffc53 Remove redundant clone from new_class 2020-08-23 19:10:46 +09:00
Jeong YunWon
c9c1ac9532 Give module names for classes 2020-08-23 18:24:46 +09:00
Jeong YunWon
5e9df32b18 #[pyclass] must contains name 2020-08-23 18:24:46 +09:00
Jeong YunWon
d422de6f00 Rework derive and rewrite pymodule.rs 2020-08-23 18:24:46 +09:00
Noah
4e80bfd158 Merge pull request #2141 from RustPython/coolreader18/pynativefunc-rework
Just use normal Box for PyNativeFunc
2020-08-22 22:17:37 -05:00
Jeong YunWon
bd3d4cfdb2 earlier returning for error 2020-08-23 06:54:25 +09:00
Jeong YunWon
a4a02439be Either::as_object 2020-08-23 06:52:40 +09:00
Jeong YunWon
ab112a9adf exactly_one 2020-08-23 06:52:40 +09:00
Noah
7218d1d998 Make more dyn Fn()s threading-optional 2020-08-22 16:18:26 -05:00
Jeong YunWon
a3b33a668e Merge pull request #2110 from youknowone/imp-threading
non-threading compatibility for imp.rs
2020-08-23 06:14:12 +09:00
Jeong YunWon
f497c99ec7 Give correct names to types 2020-08-22 06:32:39 +09:00
Jeong YunWon
2c1eff49d6 PyClass::extend_class cannot be called with bare py_clas! 2020-08-21 09:49:03 +09:00
Jeong YunWon
23c2c58140 Move out read-only flags of slots. 2020-08-21 09:47:02 +09:00
Noah
5099255cd0 Revert "Trying revert for regression" 2020-08-20 11:41:21 -05:00
Noah
068b301c83 Merge pull request #2133 from clemado1/itertools
Fix panic in itertools pruduct
2020-08-19 23:09:03 -05:00
clemado1
fb18a8d66e Fix panic in itertools pruduct 2020-08-20 11:52:31 +09:00
Jeong YunWon
39699ca970 Fix zlib.Z_DEFLATED 2020-08-20 05:50:00 +09:00
Jeong YunWon
7efac0ef49 revert HAVE_DICT 2020-08-20 04:18:21 +09:00
Noah
ebecc1ac0f Fix some minor things required for unittest 2020-08-20 04:18:21 +09:00
Jeong YunWon
8bfc218b2d Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests"
This reverts commit 96926daf6f, reversing
changes made to 230f91582f.
2020-08-20 04:18:21 +09:00
Jeong YunWon
b1946f0074 fix broken zlib.Compress 2020-08-20 03:17:58 +09:00
Jeong YunWon
a5f73452d6 io.FileIO into #[pyclass] 2020-08-19 11:09:47 +09:00
Jeong YunWon
74253e2c56 Remove redundant clone 2020-08-19 10:00:48 +09:00
Minjun Shin
d992eec95a check for '=' in environment variable name in os.execve 2020-08-17 02:30:26 +09:00
ugaemi
1d554eb065 Fix fmt 2020-08-16 03:25:37 +09:00
ugaemi
b1eb20275d Add crate BorrowValue 2020-08-16 03:19:12 +09:00
ugaemi
6abb67398d Modify return type 2020-08-16 02:59:40 +09:00
ugaemi
620e4b93ea Add __ne__ for array, bytearray 2020-08-16 02:59:15 +09:00
Jeong YunWon
b57d943031 Merge pull request #2117 from youknowone/pymodule-attr-use
Allow `use` for `#[pyattr]`
2020-08-16 02:11:47 +09:00
Jeong YunWon
33bb4e1dc0 Adapt pyattr use for zlib 2020-08-15 18:58:02 +09:00
Jeong YunWon
1c0b6e9d81 pyattr use for zlib 2020-08-15 18:56:06 +09:00
clemado1
5f8fa320b9 Fix value and overflow error in itertools 2020-08-15 18:49:04 +09:00