Commit Graph

856 Commits

Author SHA1 Message Date
Noah
97b8a7bf32 Merge pull request #1621 from RustPython/coolreader18/io-update
Update the io module with a bunch of methods
2019-12-04 13:08:14 -06:00
Windel Bouwman
799541b0b1 Merge pull request #1619 from RustPython/coolreader18/time-structseq
Make time.struct_time a struct_sequence
2019-12-04 16:09:00 +01:00
coolreader18
04dfc06cd7 More socket constants 2019-12-03 21:39:34 -06:00
Noah
255dd5f491 Unify buffer and closed 2019-12-03 11:37:46 -06:00
coolreader18
68e9c12b9a Make time.struct_time a struct_sequence 2019-12-02 18:16:28 -06:00
coolreader18
4263ce48e3 Include _io on WASM, just not FileIO 2019-12-01 17:49:29 -06:00
Windel Bouwman
10997aeda7 Merge pull request #1620 from RustPython/coolreader18/socket-fixes
Add some dns functions to socket
2019-12-01 10:51:07 +01:00
coolreader18
e63073bfb8 Update io module with a bunch of methods 2019-12-01 02:01:15 -06:00
Noah
711c222f0e Merge pull request #1616 from maybe-rachel/stdlib_os_additions
add some os stdlib functions
2019-11-30 23:55:47 -06:00
Noah
ec011f579a Merge pull request #1604 from Space0726/itertools
Implement itertools.zip_longest
2019-11-30 22:51:50 -06:00
maybe-rachel
0e7a22b672 PR review try#2 2019-11-30 21:46:08 -07:00
maybe-rachel
614d2ed5c5 Revert "/pull/1616#pullrequestreview-324914220"
This reverts commit 8ad4aa84d5.
2019-11-30 21:34:47 -07:00
maybe-rachel
8ad4aa84d5 /pull/1616#pullrequestreview-324914220 2019-11-30 17:51:34 -07:00
coolreader18
f24cdf191c Add socket.gethostbyaddr, fix socket.bind with empty address 2019-11-30 17:25:36 -06:00
coolreader18
62ce47d144 Add socket.recv_into 2019-11-30 17:25:36 -06:00
coolreader18
f75638cc17 socket.getaddrinfo 2019-11-30 17:25:34 -06:00
maybe.rachel
a7601761bc add os pipe, blocking, inheritable functions 2019-11-30 01:34:54 -07:00
coolreader18
4c0ba7b1bd Set up the machinery behind the codecs module 2019-11-28 13:33:24 -06:00
Noah
4a69af8cc3 Merge pull request #1576 from RustPython/coolreader18/vm-lib-reorganize
Reorganize vm/Lib and frozen.rs
2019-11-27 14:37:00 -06:00
Space0726
fbd727e769 Fix numactive to immutable and Cell type, clarify error handling 2019-11-26 18:24:35 +09:00
Space0726
af95003bb9 Fix code style by rustfmt 2019-11-24 03:44:38 +09:00
Noah
4cf2672876 Add _multiprocessing stub 2019-11-23 11:20:41 -06:00
coolreader18
b5505b4e73 Add asyncio.run from CPython 3.7 2019-11-23 11:20:41 -06:00
Aviv Palivoda
c3330d3ce3 Merge pull request #1597 from palaviv/io-improve
Add readline,tell to BytesIO and StringIO
2019-11-23 11:20:57 +02:00
coolreader18
986b8b2e8f Make _warnings.warn not print debug of PyObject 2019-11-22 22:49:11 -06:00
Space0726
994e86fa25 Implement itertools.zip_longest 2019-11-23 02:43:07 +09:00
Daniel Alley
16b2b425b8 Add itertools.combinations()
re: #1361
2019-11-21 23:06:27 -05:00
Daniel Alley
53b391177b Alphabetize 2019-11-21 12:46:25 -05:00
coolreader18
ae0a343906 Add stub _winapi module 2019-11-17 17:09:13 -06:00
coolreader18
bed54e035c Add some constants to native modules 2019-11-16 22:58:51 -06:00
coolreader18
5ca0e9a927 Add more IO exceptions 2019-11-16 22:57:49 -06:00
coolreader18
e612c0d7ab Add the errno::errors module 2019-11-16 22:57:49 -06:00
Aviv Palivoda
7b83e8ae7b add readline to BytesIO and StringIO 2019-11-15 17:41:51 +02:00
Aviv Palivoda
043413a7ee Add tell method to BytesIO, StringIO 2019-11-15 17:41:51 +02:00
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