Commit Graph

5342 Commits

Author SHA1 Message Date
Noah
f5de59a4bd Merge pull request #1834 from RustPython/coolreader18/jsontests
Add json output for CPython tests
2020-04-04 11:52:04 -05:00
Aviv Palivoda
3fb1d3f9d0 Merge pull request #1841 from palaviv/vendor-openssl
Use vendored version of openssl
2020-04-04 18:33:44 +03:00
Aviv Palivoda
b41943e080 Use vendored version of openssl 2020-04-04 13:49:07 +03:00
Noah
71af10bc5a Merge pull request #1744 from RustPython/coolreader18/wasm-inject-module
Add a better injectModule method to WASM
2020-04-03 15:39:39 -05:00
Noah
a8027ab48a Fix clippy lints 2020-04-03 12:34:01 -05:00
Noah
f33e2d3b39 Remove incognito from vm 2020-04-03 12:34:00 -05:00
Noah
4aee59527d Fix benchmarks (maybe?) 2020-04-03 12:34:00 -05:00
Noah
be565d30ae Make incognito a CodeFlag bit 2020-04-03 12:34:00 -05:00
Noah
5b2cfb442d Make from __future__ imports a syntactic construct in the compiler 2020-04-03 12:34:00 -05:00
Noah
80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Noah
9925d5b3bc Add test_inject_module 2020-04-03 12:34:00 -05:00
Noah
92ca0e7359 Add WASM vm.injectModule(name, source, imports?, strict_private?) 2020-04-03 12:34:00 -05:00
Noah
3530540679 Move syntax error conversion to convert.rs, add PyResultExt 2020-04-03 12:33:59 -05:00
Noah
a104d43d7f Merge pull request #1811 from RustPython/coolreader18/typ-generic-pyobj
Make PyObject.typ a Rc<PyObject<PyClass>>
2020-04-03 12:20:37 -05:00
Noah
7143b93203 Rename into_generic_pyobj -> into_typed_pyobj 2020-04-03 11:43:07 -05:00
Noah
ceb11d6bc1 Merge pull request #1827 from mireille-raad/master
Adding readme under parser and parser/src
2020-04-03 09:55:54 -05:00
Mireille Raad
9c1cb881d1 move content of readme file 2020-04-03 10:18:04 -04:00
Jeong YunWon
a6b23129ea Merge pull request #1816 from RustPython/coolreader18/posonly-error
Error on positional-only parameters passed as keywords
2020-04-03 15:23:18 +09:00
Noah
aad212299f Add tests for positional/keyword only arguments 2020-04-03 00:24:33 -05:00
Noah
652231a683 Error on positional-only parameters passed as keywords 2020-04-03 00:24:30 -05:00
Noah
807c84981c Fix typo
Co-Authored-By: Jeong YunWon <youknowone@users.noreply.github.com>
2020-04-03 00:12:59 -05:00
Jeong YunWon
91080470aa Merge pull request #1836 from RustPython/coolreader18/pyfunc-smallbox
Don't allocate for PyNativeFunc when it's just a fn pointer
2020-04-03 13:15:22 +09:00
Jeong YunWon
73f0b3c4ec Merge pull request #1835 from RustPython/coolreader18/fix-cached_property
Call __set_name__ on descriptors when initializing types
2020-04-03 12:53:47 +09:00
Noah
f66fde57c1 Add json output for CPython tests 2020-04-02 17:42:01 -05:00
Noah
2453b73417 Mark failing test 2020-04-02 17:42:01 -05:00
Noah
60d96c42a3 Fix passing a generator to OrderedDict() 2020-04-02 17:42:00 -05:00
Noah
dd92e90366 Add str.__format__ 2020-04-02 17:42:00 -05:00
Noah
53a6bc3f58 Add method.__func__ property 2020-04-02 17:41:52 -05:00
Noah
e2d7ab30aa Don't allocate for PyNativeFunc when it's just a fn pointer 2020-04-02 13:57:08 -05:00
Noah
bd1fdd4d90 Call __set_name__ on descriptors when initializing types 2020-04-02 12:29:20 -05:00
Noah
a901323777 Separate dict.__new__ to dict.__init__ for OrderedDict 2020-04-02 09:02:44 -05:00
Noah
6553bf72d4 Move varargs information into CodeFlags 2020-04-02 09:02:18 -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
Jeong YunWon
210e8a07f0 Merge pull request #1830 from youknowone/method-repr
Basic bound method repr
2020-03-30 21:58:00 +09: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
126f41e003 Make rustpython -i script.py work like it does in CPython 2020-03-27 15:24:08 -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
72f7cd65eb Install openssl on Windows in GH Actions 2020-03-27 14:40:20 -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
255b5a631a Edit ssl.py slightly 2020-03-27 14:40:19 -05:00
Noah
d3cc3601d6 Add ssl.py from CPython 3.6 2020-03-27 14:40:19 -05:00
Noah
0f4b358101 Add ipaddress.py from CPython 3.6 2020-03-27 14:40:19 -05:00