Commit Graph

935 Commits

Author SHA1 Message Date
Noah
bc121d791a Merge pull request #1682 from RustPython/coolreader18/compare_digest
Add _operator._compare_digest
2020-01-25 12:20:08 -06:00
Jeong YunWon
d31d0c6510 Merge pull request #1685 from youknowone/slot-name
pyslot guess slot name from function name
2020-01-15 11:51:16 +09:00
Jeong YunWon
3ade61a641 Merge pull request #1686 from RustPython/coolreader18/redox-fix
Fix compilation on Redox
2020-01-15 11:08:02 +09:00
Jeong YunWon
8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
coolreader18
ddf5c9aade Compile for redox 2020-01-14 19:07:05 -06:00
Jeong YunWon
9bad20716f Merge pull request #1670 from youknowone/bytes
Refactor bytes/bytearray/byteinner
2020-01-14 14:09:08 +09:00
Noah
e10a8b282d Use new_function for nextafter to fix CI 2020-01-13 11:01:44 -06:00
Jeong YunWon
c4d1ad346b Merge pull request #1679 from corona10/math_nextafter
math: Implement math.nextafter
2020-01-13 20:18:16 +09:00
coolreader18
0418cc7790 Add _operator._compare_digest 2020-01-12 22:57:19 -06:00
Jeong YunWon
36ebb048ef cleanup bytes 2020-01-13 11:20:42 +09:00
Jeong YunWon
c6e148efcf cleanup bytearray 2020-01-13 11:20:42 +09:00
Dong-hee Na
1de9b1a41d math: Implement math.nextafter 2020-01-13 02:03:02 +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