Commit Graph

446 Commits

Author SHA1 Message Date
Windel Bouwman
df31abea98 Merge branch 'master' of https://github.com/RustPython/RustPython into cryptomods 2019-06-29 16:46:00 +02:00
Windel Bouwman
d185f53195 Merge pull request #1079 from sanxiyn/os-lstat
Implement os.lstat
2019-06-29 16:19:04 +02:00
Windel Bouwman
f4d63c923a Switch to better supported crypto lib. 2019-06-29 14:03:19 +02:00
Seo Sanghyeon
87d866d414 Implement os.lstat 2019-06-29 17:21:11 +09:00
Windel Bouwman
57de0ebc05 Merge pull request #1061 from RustPython/xdrlib
Add endianness support to struct module.
2019-06-29 09:05:54 +02:00
Aviv Palivoda
a3dc98d172 Add empty _imp._fix_co_filename 2019-06-28 10:46:55 +03:00
Aviv Palivoda
3c54494132 Merge pull request #1054 from mkurnikov/keyerror-cpython
KeyError should have passed key object as a first element of .args
2019-06-28 09:23:51 +03:00
Aviv Palivoda
da39dde31f Merge pull request #1062 from palaviv/file-io-fd
Improve FileIO
2019-06-28 09:18:54 +03:00
Windel Bouwman
0a369d821d Add initial hashlib module. 2019-06-27 19:09:35 +02:00
Maxim Kurnikov
848714e18e save passed object into the first .args parameter for dict/mappingproxy KeyError 2019-06-26 23:40:24 +03:00
coolreader18
c78c95f03a Add CPython library modules needed for unittest 2019-06-26 11:39:10 -05:00
Aviv Palivoda
8cdf19c5f9 FileIO.write support ByteArray 2019-06-26 18:17:47 +03:00
Windel Bouwman
9e194b3904 Add endianness support to struct module. 2019-06-26 16:38:11 +02:00
Aviv Palivoda
dc7eb24aab Support fileno as name in FileIO 2019-06-25 19:13:27 +03:00
Aviv Palivoda
725cfcc58d compute_c_flag ignore chars after first 2019-06-25 18:48:30 +03:00
Windel Bouwman
eeb7551692 Merge pull request #1039 from RustPython/coolreader18/wasm-_js-module
[WASM] Add a JsValue class
2019-06-23 11:39:01 +02:00
rmliddle
9bc392ca70 removed duplicate c_flag function 2019-06-23 11:59:21 +10:00
rmliddle
026958a322 Resolved merge conflict 2019-06-23 11:39:46 +10:00
rmliddle
0f0a9369b5 Updated StringIO to use "StringIO" 2019-06-23 11:36:59 +10:00
coolreader18
61b26878de Add rustpython_vm::__exports module and fix warning 2019-06-21 20:20:19 -05:00
coolreader18
650139b918 Merge pull request #1048 from RustPython/revert-1037-coolreader18/option-source_path
Revert "Make CodeObject.source_path an Option<String>", just add a parameter to import_codeobj
2019-06-21 11:49:03 -05:00
coolreader18
ba8b733139 Merge pull request #1044 from RustPython/coolreader18/ser_de-own-module
Move PyObject de/serialization to its own module
2019-06-20 23:44:13 -05:00
rmliddle
e96a7014c4 Updates BytesIO to use "BufferedIO" 2019-06-21 13:51:51 +10:00
coolreader18
aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" 2019-06-20 12:01:20 -05:00
coolreader18
0ac42ac9aa Add convenience functions 2019-06-19 17:30:09 -05:00
coolreader18
9ac854aea5 Use serde_wasm_bindgen for wasm ser/de 2019-06-18 14:32:34 -05:00
coolreader18
a8d80193c7 Move PyObject serialization to its own file 2019-06-18 13:31:58 -05:00
Aviv Palivoda
2f408f2210 Add conversion from io::Error to OSError 2019-06-18 19:06:00 +03:00
Aviv Palivoda
700d7d4b62 Add os.rename 2019-06-18 19:02:04 +03:00
Windel Bouwman
73edde66f7 Merge pull request #1037 from RustPython/coolreader18/option-source_path
Make CodeObject.source_path an Option<String>
2019-06-17 16:58:48 +02:00
rmliddle
8faab1f494 Implement String, BytesIO with Cursor<Vec<u8>> 2019-06-17 19:31:42 +10:00
coolreader18
b74b65d37e Make CodeObject.source_path an Option<String> 2019-06-16 19:59:04 -05:00
coolreader18
b6b8f6ec9c Have stdlib::get_module_inits() use maplit::hashmap! 2019-06-16 10:33:47 -05:00
coolreader18
743adf10de Merge branch 'master' into coolreader18/comptime-pycompilation 2019-06-16 09:05:34 -05:00
coolreader18
75c2e4ae9b Remove lazy_static, just store as a CodeObject 2019-06-15 11:31:30 -05:00
Aviv Palivoda
92ad30ef6a Add mode argument to os.open 2019-06-15 17:02:46 +03:00
Aviv Palivoda
82f83ef345 Support more open flags 2019-06-15 16:22:51 +03:00
coolreader18
8143b69165 Change imp_get_frozen_object 2019-06-14 11:31:39 -05:00
coolreader18
e592f3d888 Add py_compile_bytecode! macro 2019-06-14 10:42:45 -05:00
coolreader18
45bb2bd263 Split off bytecode compilation into a separate crate 2019-06-12 21:43:43 -05:00
Windel Bouwman
3f343aff6c Merge pull request #1018 from palaviv/imp3
Importlib
2019-06-12 16:21:26 +02:00
coolreader18
cb2fe657a9 Merge pull request #1014 from mkurnikov/cleanup-get-method-error-handling
Cleanup get_method() error handling
2019-06-11 17:43:58 -05:00
Aviv Palivoda
d9d0ea1834 Fix os to _os in class 2019-06-10 19:18:32 +03:00
Aviv Palivoda
5c53e58547 Print frozen import file name in stacktrace 2019-06-10 19:18:32 +03:00
Aviv Palivoda
0e76dbb749 Add needed methods to _thread 2019-06-10 19:18:32 +03:00
Aviv Palivoda
a57f38b07f Rename builtin io to _io 2019-06-10 19:18:32 +03:00
rmliddle
33885a8334 Namespace added for objstr: get_value, PyStringRef 2019-06-10 22:48:28 +10:00
rmliddle
6542d3586e Optional args on new for Bytes/StringIO 2019-06-10 00:57:17 +10:00
rmliddle
6767b4efb1 BytesIO First Pass 2019-06-09 21:33:16 +10:00
Windel Bouwman
eb234ca3c5 Merge pull request #1021 from mkurnikov/speed-up-file-open
Get io reader/writer classes only when needed
2019-06-08 16:13:42 +02:00