Commit Graph

948 Commits

Author SHA1 Message Date
Jeong YunWon
7d0d313aa5 &str::to_string -> &str::to_owned for variables 2020-02-05 22:55:34 +09:00
Jeong YunWon
1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
Noah
9abb258849 Fix clippy warnings 2020-02-03 18:38:19 -06:00
Noah
a762bf89d9 Move gen_res53 to mersenne.rs 2020-02-03 18:27:35 -06:00
Noah
a20b6bfaaa Implement _random using the MT19937 algorithm 2020-02-03 18:21:51 -06:00
malkoG
8a3fb408dc Implement random module 2020-02-03 18:21:37 -06:00
Aviv Palivoda
9c12b95cf4 Support timeout in Popen.communicate 2020-02-01 09:54:05 +02:00
Jeong YunWon
24304a9f24 cleanup unused import warning for macOS 2020-01-30 21:14:54 +09:00
Jeong YunWon
7fd92fcc71 Py_TPFLAGS_BASETYPE 2020-01-30 16:32:09 +09:00
Jeong YunWon
1ecc8228d9 PySlots::flags 2020-01-29 21:30:33 +09:00
Jeong YunWon
b2ba6b2013 objtype::class_*_attr into PyClassRef methods 2020-01-29 21:30:33 +09:00
Noah
ac4af12320 Merge pull request #1700 from palaviv/github-actions
GitHub actions
2020-01-27 16:22:54 -08:00
Noah
bc121d791a Merge pull request #1682 from RustPython/coolreader18/compare_digest
Add _operator._compare_digest
2020-01-25 12:20:08 -06:00
Aviv Palivoda
fbb96c5494 Fix os.symlink on windows 2020-01-25 19:25:56 +02: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