Commit Graph

924 Commits

Author SHA1 Message Date
Jeong YunWon
c6e148efcf cleanup bytearray 2020-01-13 11:20:42 +09:00
Jeong YunWon
70b63eb758 new_rustfunc -> new_function & new_method to distinguish bindable functions 2020-01-12 18:39:16 +09:00
Jeong YunWon
24289964d3 Merge pull request #1649 from youknowone/func-vm
Allow to skip VM param for IntoPyNativeFunc functions
2020-01-12 18:24:01 +09:00
coolreader18
098393d4d6 Add __length_hint__ to a bunch of iterators 2020-01-10 18:24:23 +00:00
coolreader18
c65dc336f5 Add _operator module 2020-01-10 18:24:22 +00:00
Noah
156e6e1555 Merge pull request #1654 from youknowone/clone-value
objstr::get_value -> objstr::clone_value
2020-01-08 18:24:38 -06:00
Jeong YunWon
9d01ae2957 socket.has_ipv6 as false (temporary) 2020-01-08 11:54:30 +09:00
Jeong YunWon
2473f8a1fe Merge pull request #1655 from youknowone/refactor-tuple
Refactor list, tuple and collections.deque
2020-01-08 11:45:45 +09:00
Jeong YunWon
5e2035f979 remove unnessessary pub 2020-01-08 11:04:17 +09:00
Marty Moradian
a72109cec0 Formatting changes. 2020-01-07 16:58:44 -06:00
Marty Moradian
43d135594a Disambiguated method call for ntoh 2020-01-07 15:54:05 -06:00
Marty Moradian
93e2eec2da Made requested changes. (Combined short and long versions of hton and ntoh with generics, simplified their return values, replaced a chunk of code with from_be.) 2020-01-07 15:42:49 -06:00
Jeong YunWon
5a3937fd15 Refactor deque and fix comparison bug 2020-01-08 02:20:41 +09:00
Jeong YunWon
226ebfa0c6 vm::sequence for SimpleSeq utilities 2020-01-07 22:24:05 +09:00
Jeong YunWon
18fcd99584 SimpleSeq for PyDeque 2020-01-07 22:11:26 +09:00
Jeong YunWon
12725a308e PyList::borrow_sequence to borrow SimpleSeq 2020-01-07 22:00:21 +09:00
Jeong YunWon
0e583b2829 Refactor PyList to have elements as private field 2020-01-07 20:42:25 +09:00
Marty Moradian
2912d799d8 Add htons, ntohl, and ntohs to socket.rs 2020-01-07 04:11:58 -06:00
Jeong YunWon
9f4f8ad0ec PyTuple::elements into private 2020-01-06 02:34:56 +09:00
Jeong YunWon
3a0f6a055d Merge pull request #1663 from jhyeom26/add-chroot
Add os.chroot
2020-01-06 01:15:56 +09:00
joonho
baeed516a7 Add os.chroot 2020-01-05 18:26:33 +09:00
coolreader18
8494979a02 Reorganize unicodedata and add unicodedata.ucd_3_2_0 2020-01-05 00:19:48 -06:00
Jeong YunWon
92ba35d1b1 Allow to skip VM param for IntoPyNativeFunc functions 2020-01-03 02:18:56 +09:00
Jeong YunWon
13914e0739 objstr::get_value -> objstr::clone_value
because the previous naming gives unclear performance estimation to
users especially comparing to objstr::borrow_value
2020-01-02 20:51:10 +09:00
Aviv Palivoda
88c477fb6c Fix CR comments 2019-12-30 21:31:36 +02:00
Aviv Palivoda
4aa032d299 Add time.perf_counter 2019-12-30 21:31:36 +02:00
Aviv Palivoda
7518faa2ea Add mode parameter to mkdir 2019-12-30 21:31:36 +02:00
Aviv Palivoda
d13a25b763 Add stub function to faulthanlder 2019-12-30 21:31:36 +02:00
Aviv Palivoda
4caf46c635 Add faulthandler.dump_traceback 2019-12-30 21:31:36 +02:00
Noah
deee1f7df7 Merge pull request #1644 from RustPython/coolreader18/exc-cleanup
Use PyBaseExceptionRef in places where we expect exceptions
2019-12-29 17:17:26 -05:00
Noah
bd13671eee Merge pull request #1641 from youknowone/refactor-float
Refactor float, complex cmp/op , str, None
2019-12-28 21:07:33 -05:00
coolreader18
777542f7ec Directly instantiate exceptions in the vm.new_*_error functions 2019-12-28 01:31:24 -06:00
Noah
97c8d11092 Make PyResult<T> = Result<T, PyBaseExceptionRef> 2019-12-27 11:22:52 -06:00
Jeong YunWon
f22a12d555 Merge pull request #1647 from youknowone/property-setter
Allow empty return type for property setter
2019-12-27 14:32:25 +09:00
Jeong YunWon
a54c98de3f property setter return PyResult<()> instead of PyResult 2019-12-27 02:09:58 +09:00
Jeong YunWon
801d01161c Refactor PyFloat cmp/op 2019-12-26 22:17:24 +09:00
Daniel Alley
4bbca2bed2 Add itertools.combinations_with_replacement() 2019-12-26 00:21:53 -05:00
Daniel Alley
bf82caed4b Implement itertools.chain.from_iterable() 2019-12-25 10:33:23 -05:00
Daniel Alley
7be477a091 Add itertools.cycle() 2019-12-24 20:13:50 -05:00
Noah
e75d667ade Merge pull request #1636 from dralley/itertools
Itertools.permutations implementation & combinations fixes
2019-12-24 12:32:57 -05:00
Daniel Alley
5ae7e99cde Add permutations implementation 2019-12-24 00:55:46 -05:00
Daniel Alley
f32fe9dcb8 Fix combinations implementation 2019-12-24 00:23:37 -05:00
coolreader18
a48afdd087 Add compilation on windows 2019-12-22 22:11:45 -06:00
coolreader18
32d1016a7f Add a TryFromObject impl for std::time::Duration 2019-12-21 14:51:12 -06:00
coolreader18
5f14238737 Add BytesIO.truncate 2019-12-21 14:51:12 -06:00
coolreader18
dcbf1a7ac4 Add socket.setsockopt 2019-12-21 14:51:11 -06:00
coolreader18
e8d51a8f4b Fix remaining clippy errors to get master green 2019-12-21 14:51:00 -06:00
coolreader18
08f72686b3 Actually actually make master green 2019-12-21 14:45:33 -06:00
coolreader18
3bf124f364 Actually make master green 2019-12-21 14:44:04 -06:00
coolreader18
8dc6c2bddc Fix remaining clippy errors to get master green 2019-12-21 14:35:37 -06:00