Aviv Palivoda
b38e2418fa
BytesIO write accept PyBytesLike
2019-11-15 17:41:51 +02:00
writtic
ed075cf71c
Update remainder module of math
...
- Implement remainder function with test case
- math.remainder was added to CPython in 3.7 and RustPython CI runs on 3.6
2019-11-11 22:27:46 +09:00
Aviv Palivoda
aebc0a42d8
Update format to Rust version 1.39
2019-11-08 23:03:24 +02:00
Noah
e563945979
Address feedback
2019-11-01 17:42:36 -05:00
coolreader18
460e1497ff
Fix some minor stuff
2019-10-28 22:29:28 -05:00
coolreader18
25a571a38b
Fix _socket.socket __new__/__init__, set timeout
2019-10-28 22:27:23 -05:00
coolreader18
f2d63723cc
Add socket constants
2019-10-28 22:27:23 -05:00
coolreader18
90e97c2baa
Add socket.py from CPython 3.6
2019-10-28 22:27:22 -05:00
coolreader18
435342bc32
Convert PySocket to new-style class
2019-10-28 22:27:22 -05:00
coolreader18
fcc796d6e1
Use socket2 crate for the socket module
...
It closely mirrors the unix C api for sockets, which is good because
Python does as well.
2019-10-28 22:27:22 -05:00
coolreader18
502f42b7cd
Use Duration::{from_secs_f64,as_secs_f64}
2019-10-28 11:40:18 -05:00
coolreader18
407e4b2e86
Remove kernel32-sys dependency
2019-10-24 13:51:10 -05:00
Noah
8400838476
Get select() working on Windows, apply suggestions
2019-10-23 22:46:00 +00:00
Noah
859cbf0c13
Add a check_signals method to vm
2019-10-23 17:54:15 +00:00
coolreader18
662628385c
Add select built-in module
2019-10-23 17:53:51 +00:00
Windel Bouwman
e8bb4bb5ba
Merge pull request #1549 from palaviv/refactor-pystruct
...
pystruct refactor
2019-10-20 14:11:56 +02:00
Windel Bouwman
11e8e6235d
Merge pull request #1526 from seeeturtle/itertools
...
Implement itertools.product
2019-10-20 10:30:40 +02:00
Aviv Palivoda
d0184a7ac2
struct.pack does not allow string as pack parameter
2019-10-20 10:13:40 +03:00
johan.park
533aa2bc26
Update fmod module of math
...
- Implement fmod function with test case
2019-10-20 14:55:23 +09:00
joshua1b
8deb936c22
Implement itertools.product
...
This implements `itertools.product` of standard library.
Related with #1361
2019-10-20 14:47:22 +09:00
johan.park
731186a23d
Improve modf module of math
...
- Add INF, NINF, NAN test case
- Apply code relevant to added the test case on the modf code
2019-10-19 10:36:20 +09:00
Aviv Palivoda
89566ee07b
Merge pull request #1543 from palaviv/use-primitives-directly
...
Use primitives directly
2019-10-18 14:29:10 +03:00
Aviv Palivoda
11650e9fbf
Use u64 directly
2019-10-17 19:36:42 +03:00
Aviv Palivoda
da8c3f5ead
Use u32 directly
2019-10-17 19:34:29 +03:00
Aviv Palivoda
e89baf8d47
Use usize directly
2019-10-17 19:28:04 +03:00
Noah
2bfb08a83b
Merge pull request #1540 from palaviv/random-new-arg-style
...
Convert random to new arg style
2019-10-17 11:25:30 -05:00
Aviv Palivoda
ca20acf7a0
Change time module to use primitives directly
2019-10-17 19:17:58 +03:00
Aviv Palivoda
5cde75bec8
Use i64 directly
2019-10-17 19:17:58 +03:00
Aviv Palivoda
ab775485ff
Use i32 directly
2019-10-17 17:47:38 +03:00
Aviv Palivoda
cd96d2b292
Fix typo
2019-10-17 12:08:04 +03:00
Noah
8b31ee573e
Merge pull request #1539 from palaviv/io-new-arg-style
...
Convert io to new arg style
2019-10-16 22:50:46 -05:00
Johan
6270344740
Update isclose module of math ( #1532 )
...
- Implement `math.isclose()` function with test case
- Add `IsCloseArgs` struct for `keyword_only` argument: `rel_tol`, `abs_tol`
- Change order of test case on `math_module.py` for readability
- Clippy recommends using `std::f64::EPSILON` instead of `==` but purpose is different
- Fix multiline declaration on the function parameters
2019-10-16 23:25:53 +09:00
Jeong YunWon
9f6ccf1ec4
Merge pull request #1537 from palaviv/os-new-arg-style
...
Change os functions to new arg style
2019-10-16 16:39:33 +09:00
Aviv Palivoda
1e7fb388d2
Revert os.close drop call
2019-10-15 22:31:29 +03:00
Aviv Palivoda
2930c10979
Convert random to new arg style
2019-10-15 22:22:05 +03:00
Windel Bouwman
a1e3fe4e63
Merge pull request #1538 from palaviv/platform-new-arg-style
...
Convert platform to new arg style
2019-10-15 20:58:35 +02:00
Aviv Palivoda
dda4ab00e3
Convert io.{TextIOWrapper, BufferedReader} to new arg style
2019-10-15 21:52:08 +03:00
Aviv Palivoda
1ad9ee8792
Simplify os.close
2019-10-15 21:38:28 +03:00
Aviv Palivoda
e8b0185251
Convert io.FileIO to new arg style
2019-10-15 21:27:42 +03:00
ChJR
b2126829e9
Add repeat count support to struct.pack() ( #1518 )
...
* Add struct.pack() repeat count test
* Add repeat count support to struct.pack()
* Refactor parse_format_codes()
* Refactor parse_format_codes() again
2019-10-15 19:25:51 +02:00
Aviv Palivoda
6d08b4f553
Convert io.{IOBase, BufferedReader} to new arg style
2019-10-15 19:03:15 +03:00
Aviv Palivoda
f0e30f2ff3
Convert platform to new arg style
2019-10-15 18:39:09 +03:00
Aviv Palivoda
a435bb1f81
Change os.error to new arg style
2019-10-15 18:21:46 +03:00
Aviv Palivoda
9d5cdf23b3
Change os.close to new arg style
2019-10-15 18:16:38 +03:00
Windel Bouwman
2205fec2ff
Merge pull request #1524 from dan-fritchman/1175-extend-os
...
Add os.system
2019-10-14 20:15:28 +02:00
Dan Fritchman
2df54f3a10
Re-order os module exports
2019-10-14 18:00:38 +02:00
Dan Fritchman
899f6e78e5
Pre-underscore os.system _vm
2019-10-14 17:57:55 +02:00
Dan Fritchman
e94f3f372d
Add os.system
2019-10-13 15:45:17 +02:00
kluid
958e9abb57
Add some csv.reader kwarg options
...
'delimiter' and 'quotechar'
2019-10-13 17:18:17 +09:00
Windel Bouwman
336364c80d
Merge pull request #1318 from youknowone/ast-module
...
ast module
2019-10-12 12:51:26 +02:00