Commit Graph

3543 Commits

Author SHA1 Message Date
Noah
e2d7ab30aa Don't allocate for PyNativeFunc when it's just a fn pointer 2020-04-02 13:57:08 -05:00
Noah
c1c9631798 Merge pull request #1823 from RustPython/coolreader18/stdlib-ssl
Add the ssl stdlib module
2020-04-01 11:34:41 -05:00
Noah
7051b25d2a Manually error on embedded nul for set_ciphers 2020-03-31 22:40:42 -05:00
Noah
4fc45d2569 Add _SSLSocket.peer_certificate 2020-03-27 15:24:09 -05:00
Noah
4f64afb8cf Add ctx.load_verify_locations(cadata=), and ctx.get_ca_certs 2020-03-27 15:24:09 -05:00
Noah
12c57ce135 Add ssl.RAND_* functions 2020-03-27 15:24:08 -05:00
Noah
31905bd1ce Add OPENSSL_VERSION constants 2020-03-27 15:24:08 -05:00
Noah
588589865e Try a few things to make cert verification work 2020-03-27 15:24:08 -05:00
Noah
bea6e54a37 Make ssl work on windows 2020-03-27 15:24:08 -05:00
Noah
03ba022258 Don't use the matches!() macro 2020-03-27 15:24:08 -05:00
Noah
40835b19e6 Add _ssl stdlib module 2020-03-27 14:40:20 -05:00
Noah
a42e94b44f Add socket.getsockopt, impl io::{Read,Write} for PySocketRef 2020-03-27 14:40:20 -05:00
Noah
289311727b impl TryFromObject for CString 2020-03-27 14:40:20 -05:00
Noah
d243b73b67 Fix int.from_bytes() with an arbitrary iterator 2020-03-27 14:40:16 -05:00
Jeong YunWon
d148bdd46c Basic bound method repr 2020-03-28 02:05:58 +09:00
Noah
18c4a6f44c Merge pull request #1801 from RustPython/coolreader18/async-gen
Implement async generators
2020-03-21 11:37:53 -05:00
Noah
44bd11fd49 Merge pull request #1822 from palaviv/glob
Add glob module
2020-03-21 09:37:48 -05:00
Aviv Palivoda
d93e4eaf4e Change OutputMode to camel case 2020-03-21 10:11:44 +02:00
Noah
78f8f14003 Apply review comments 2020-03-21 00:37:13 -05:00
Noah
08593cd9f3 Do some more refactoring, but better 2020-03-21 00:35:38 -05:00
Noah
c1bf5124b1 RuntimeError on coro raising StopIteration 2020-03-21 00:35:38 -05:00
Noah
f0cc91d9ac Refactor to be more accurate to CPython 2020-03-21 00:34:13 -05:00
coolreader18
b83443cea9 Partially implement async generators 2020-03-21 00:33:46 -05:00
Jeong YunWon
e97937ab20 Merge pull request #1814 from youknowone/test-bytes
fix bytes bugs and add test_bytes.py
2020-03-21 09:54:02 +09:00
Jeong YunWon
be6f49456f Merge pull request #1812 from youknowone/str-repr
Fix str.__repr__ and builtin ascii
2020-03-21 09:53:49 +09:00
Noah
457602d5f1 Merge pull request #1819 from RustPython/coolreader18/only-gh-actions
Remove Travis and Azure CI
2020-03-20 14:39:56 -05:00
Jeong YunWon
d1dba7f7d1 Merge pull request #1818 from palaviv/struct-fixes
Struct fixes
2020-03-21 01:14:21 +09:00
Aviv Palivoda
a90157c1b7 Support bytes in os.listdir 2020-03-20 17:33:02 +02:00
Aviv Palivoda
d95c10c023 Support bytes in stat 2020-03-20 17:24:24 +02:00
Aviv Palivoda
e53f53dfc0 Add PyPathLike 2020-03-20 17:02:19 +02:00
Aviv Palivoda
4f88b07d18 Support bytes as scandir path 2020-03-20 16:40:02 +02:00
Noah
ddc461ce7f Lower recursion limit on debug builds 2020-03-15 13:50:53 -05:00
Noah
56eb656fdd Allow compilation on Redox 2020-03-15 13:48:43 -05:00
Aviv Palivoda
efb6f6a64c Implement pascal string packing 2020-03-14 17:07:38 +02:00
Aviv Palivoda
7925932459 bool packing check __bool__ 2020-03-14 16:33:13 +02:00
Aviv Palivoda
bbb799f2c7 Resize pack_string with padding 2020-03-14 16:25:02 +02:00
Aviv Palivoda
395fd6bfbe Integer packing check __index__ 2020-03-14 12:30:41 +02:00
Noah
eecb097ae6 Make bytecode::Location Copy 2020-03-13 21:49:10 -05:00
Noah
75eabfdc2c Merge pull request #1787 from youknowone/posonly
PEP570 - positional only parameter support
2020-03-13 17:19:21 -05:00
Aviv Palivoda
1fd1c19cdf Merge pull request #1797 from RustPython/coolreader18/stdlib-msvcrt
Add the msvcrt stdlib module
2020-03-13 12:44:29 +02:00
Jeong YunWon
2cd67c7d74 Fix empty needle crash for bytes.__contains__ 2020-03-13 10:20:09 +09:00
Jeong YunWon
37d5f99bde Fix bytes.split for 32bit+ int maxsplit 2020-03-13 10:20:09 +09:00
Noah
02f7f57425 Merge pull request #1803 from youknowone/subprocess-wait
Fix subprocess.wait to take None as a timeout argument
2020-03-12 20:18:05 -05:00
Jeong YunWon
d7e32680a9 Fix str.isalpha 2020-03-13 08:47:21 +09:00
Jeong YunWon
dc6fa6cf62 Fix str.isascii 2020-03-13 08:47:21 +09:00
Jeong YunWon
7bb8998b8e Fix subprocess.wait to take None as a timeout argument 2020-03-13 08:24:53 +09:00
Jeong YunWon
39e1cf1751 Fix str.__repr__ and builtin ascii 2020-03-13 08:11:36 +09:00
Noah
3498a52e18 Merge pull request #1808 from youknowone/str-splitlines
Fix str.splitlines() for \r
2020-03-12 17:44:05 -05:00
Noah
3d07a73346 Fix clippy failure on Rust 1.42.0 2020-03-12 17:42:37 -05:00
Noah
2e06e167d6 Merge pull request #1807 from youknowone/str-expandtabs
Fix str.expandtab() for newlines
2020-03-12 17:02:31 -05:00