Commit Graph

  • c78c95f03a Add CPython library modules needed for unittest coolreader18 2019-06-25 23:12:45 -05:00
  • 1f9fa724e0 Merge pull request #1063 from palaviv/eof-error coolreader18 2019-06-26 10:42:42 -05:00
  • f2dff1cd20 Add EOFError Aviv Palivoda 2019-06-26 18:25:47 +03:00
  • 8cdf19c5f9 FileIO.write support ByteArray Aviv Palivoda 2019-06-25 23:51:59 +03:00
  • 9e194b3904 Add endianness support to struct module. Windel Bouwman 2019-06-26 16:38:11 +02:00
  • 4db83aca7f Add initial unicodedata module. Windel Bouwman 2019-06-26 13:41:58 +02:00
  • c96680a70c Merge pull request #1050 from palaviv/relative-import coolreader18 2019-06-25 15:50:26 -05:00
  • 6d5f381d70 Merge pull request #1056 from mkurnikov/args-in-exceptions coolreader18 2019-06-25 11:32:07 -05:00
  • dc7eb24aab Support fileno as name in FileIO Aviv Palivoda 2019-06-25 19:13:27 +03:00
  • 725cfcc58d compute_c_flag ignore chars after first Aviv Palivoda 2019-06-25 18:48:30 +03:00
  • da4c0bccfa pass local variables to __import__ only if there is a frame Aviv Palivoda 2019-06-25 18:14:29 +03:00
  • 8852abc6c3 make exception __repr__ compatible with python3.6 Maxim Kurnikov 2019-06-24 22:19:59 +03:00
  • 1e53e6c168 specify python 3.6 specifically as a Pipfile venv target Maxim Kurnikov 2019-06-24 22:19:01 +03:00
  • 060cd75783 simplify exception_repr a bit Maxim Kurnikov 2019-06-24 18:13:18 +03:00
  • 82101d9f1a rename exc_repr -> exc_name to better describe what it refers to Maxim Kurnikov 2019-06-24 18:10:27 +03:00
  • ff1049a1eb fix regression in the exception representation in the traceback Maxim Kurnikov 2019-06-24 18:09:27 +03:00
  • cd1d7b1a43 add args attribute to exceptions, make __str__ and __repr__ compatible with CPython Maxim Kurnikov 2019-06-24 17:29:03 +03:00
  • 3085eadcb5 Merge pull request #1055 from romab1998/feature/ord_bytes_bytearray coolreader18 2019-06-23 21:16:54 -05:00
  • ba88716fbe Merge pull request #1049 from RustPython/coolreader18/fromargs-span-errors Windel Bouwman 2019-06-23 20:59:11 +02:00
  • 7effca3533 added tests for ord() in tests/snippets romab 2019-06-23 23:24:01 +05:00
  • bb9d697a85 Merge pull request #1053 from RustPython/zen Aviv Palivoda 2019-06-23 18:27:31 +03:00
  • e8c0644a04 Test relative import from upper level Aviv Palivoda 2019-06-21 11:40:32 +03:00
  • ae5259670c Test relative import Aviv Palivoda 2019-06-21 11:34:55 +03:00
  • a5276df980 Support relative import Aviv Palivoda 2019-06-21 11:34:44 +03:00
  • eeb7551692 Merge pull request #1039 from RustPython/coolreader18/wasm-_js-module Windel Bouwman 2019-06-23 11:39:01 +02:00
  • fee9c99950 Merge pull request #1026 from rmliddle/BytesIO Windel Bouwman 2019-06-23 11:37:11 +02:00
  • f2922e3f25 add bytearray and bytes input types for ord() romab 2019-06-23 11:34:12 +05:00
  • 9bc392ca70 removed duplicate c_flag function rmliddle 2019-06-23 11:59:21 +10:00
  • 026958a322 Resolved merge conflict rmliddle 2019-06-23 11:39:46 +10:00
  • 0f0a9369b5 Updated StringIO to use "StringIO" rmliddle 2019-06-23 11:36:59 +10:00
  • ed63ebd0a3 Added the python zen module. Windel Bouwman 2019-06-22 13:13:34 +02:00
  • 2f75562f14 Merge pull request #1045 from RustPython/coolreader18/pyclassmethod-attr Windel Bouwman 2019-06-22 12:40:49 +02:00
  • 658b6ca9b9 Fix errors coolreader18 2019-06-18 23:24:10 -05:00
  • 298b05d56d Don't convert errors from js to python coolreader18 2019-06-18 21:44:42 -05:00
  • 8cf38f5b25 Move classmethods on JsValue to be normal methods coolreader18 2019-06-18 20:36:11 -05:00
  • 072c8725fc Fix get_prop on primitives coolreader18 2019-06-18 19:34:13 -05:00
  • 886f77bdff Add PyJsValue::instanceof coolreader18 2019-06-17 20:13:06 -05:00
  • a3735da489 Move confirm and prompt to browser.py coolreader18 2019-06-17 19:45:04 -05:00
  • 5627ab2345 Add PyJsValue::construct() coolreader18 2019-06-17 17:53:13 -05:00
  • 93cdd94ab7 Add browser.py module coolreader18 2019-06-17 17:27:55 -05:00
  • 56bcb02a5e Add _js module and fix imports coolreader18 2019-06-17 17:27:08 -05:00
  • 61b26878de Add rustpython_vm::__exports module and fix warning coolreader18 2019-06-17 17:26:15 -05:00
  • 9bb5dcc663 Merge pull request #1051 from michelhe/get-rid-of-debug-print coolreader18 2019-06-21 13:58:04 -05:00
  • 650139b918 Merge pull request #1048 from RustPython/revert-1037-coolreader18/option-source_path coolreader18 2019-06-21 11:49:03 -05:00
  • c972e7c73e Remove a mistakenly commited debug print Michel Heily 2019-06-21 12:57:58 +03:00
  • ba8b733139 Merge pull request #1044 from RustPython/coolreader18/ser_de-own-module coolreader18 2019-06-20 23:44:13 -05:00
  • e96a7014c4 Updates BytesIO to use "BufferedIO" rmliddle 2019-06-21 13:51:51 +10:00
  • c359c430c2 Add set_file_attr to import_codeobj coolreader18 2019-06-20 22:43:13 -05:00
  • aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" coolreader18 2019-06-20 12:01:20 -05:00
  • cb832e9aa1 Improve errors messages for derive(FromArgs) coolreader18 2019-06-20 11:57:59 -05:00
  • 86b8c07581 Update Cargo.lock coolreader18 2019-06-19 20:03:31 -05:00
  • 0ac42ac9aa Add convenience functions coolreader18 2019-06-19 17:30:09 -05:00
  • 30979d9f27 Merge pull request #1043 from yanganto/feat/unicode-iterals Windel Bouwman 2019-06-19 19:13:13 +02:00
  • 974dc683e4 support unicode literal Antonio Yang 2019-06-15 15:48:51 +08:00
  • e68b4943ca Add #[pyclassmethod] to #[pyimpl] coolreader18 2019-06-18 20:37:08 -05:00
  • 7554dfa72e Merge pull request #1042 from palaviv/os-replace coolreader18 2019-06-18 18:56:35 -05:00
  • 9ac854aea5 Use serde_wasm_bindgen for wasm ser/de coolreader18 2019-06-18 13:51:04 -05:00
  • a8d80193c7 Move PyObject serialization to its own file coolreader18 2019-06-18 13:31:58 -05:00
  • 17cd22b8e8 Test OSError errno Aviv Palivoda 2019-06-18 19:00:05 +03:00
  • 9ee1ad93e0 Test os.rename Aviv Palivoda 2019-06-18 18:58:23 +03:00
  • 2f408f2210 Add conversion from io::Error to OSError Aviv Palivoda 2019-06-18 18:55:37 +03:00
  • 700d7d4b62 Add os.rename Aviv Palivoda 2019-06-18 18:32:36 +03:00
  • 0f73c746db Merge pull request #1032 from michelhe/printf-like-string-formatting Windel Bouwman 2019-06-17 21:49:33 +02:00
  • 64af5c43df Add some test snippets for modulo string formatting Michel Heily 2019-06-17 19:31:33 +03:00
  • adccfa63cf Fix bugs when parsing format specifiers with key mappings. Michel Heily 2019-06-17 17:38:34 +03:00
  • 6fe2c43bf7 Move lambda to its own function in do_cformat Michel Heily 2019-06-17 12:27:53 +03:00
  • fca4178353 Avoid unnecessary allocation in modulo formatting Michel Heily 2019-06-17 12:06:43 +03:00
  • 5d38b9b624 Simplify error handling for CFormatString::from_str Michel Heily 2019-06-16 19:57:01 +03:00
  • 8d612f3a36 Add %c formatting Michel Heily 2019-06-16 10:57:46 +03:00
  • 8e880b9bdd cformat: Fix a bug when formatting unicode strings Michel Heily 2019-06-16 10:54:35 +03:00
  • e374aff0bc Support '*' for width and precsision for printf-style formatting Michel Heily 2019-06-15 22:48:11 +03:00
  • d5ffecea32 objstr: Improve errors for modulo format Michel Heily 2019-06-15 16:51:50 +03:00
  • dc77728dbc cformat: Add some unittests. Michel Heily 2019-06-15 16:31:26 +03:00
  • 481b044883 Support modulo formatting of numbers and string types Michel Heily 2019-06-15 13:48:42 +03:00
  • fe6c1488d9 Start implementing str.__mod__ Michel Heily 2019-06-14 16:10:31 +03:00
  • f27265cf8a Add get_value for objtuple Michel Heily 2019-06-11 22:36:12 +03:00
  • d74e126246 Add parser for C printf-style format strings Michel Heily 2019-06-14 15:34:17 +03:00
  • 73edde66f7 Merge pull request #1037 from RustPython/coolreader18/option-source_path Windel Bouwman 2019-06-17 16:58:48 +02:00
  • 8faab1f494 Implement String, BytesIO with Cursor<Vec<u8>> rmliddle 2019-06-17 19:31:42 +10:00
  • b74b65d37e Make CodeObject.source_path an Option<String> coolreader18 2019-06-15 13:20:16 -05:00
  • 9b3521904a Update bench.rs to use vm.compile() coolreader18 2019-06-16 15:47:27 -05:00
  • 8b0089e258 Merge pull request #1036 from RustPython/coolreader18/stdlib-mods-maplit Windel Bouwman 2019-06-16 19:21:05 +02:00
  • b6b8f6ec9c Have stdlib::get_module_inits() use maplit::hashmap! coolreader18 2019-06-14 21:35:29 -05:00
  • ffeaf2d06a Merge pull request #1034 from RustPython/coolreader18/comptime-pycompilation Windel Bouwman 2019-06-16 17:28:02 +02:00
  • 743adf10de Merge branch 'master' into coolreader18/comptime-pycompilation coolreader18 2019-06-16 09:05:34 -05:00
  • d3927ff30e Merge pull request #1033 from palaviv/open-flags coolreader18 2019-06-16 00:34:45 -05:00
  • 1814977c45 Add doc comments coolreader18 2019-06-15 20:19:59 -05:00
  • 6b9bbf3ea4 Change TODO coolreader18 2019-06-15 13:23:04 -05:00
  • 75c2e4ae9b Remove lazy_static, just store as a CodeObject coolreader18 2019-06-15 11:31:30 -05:00
  • 92ad30ef6a Add mode argument to os.open Aviv Palivoda 2019-06-15 17:02:46 +03:00
  • 82f83ef345 Support more open flags Aviv Palivoda 2019-06-14 19:20:00 +03:00
  • 241f5190cc Formatting coolreader18 2019-06-15 00:30:14 -05:00
  • b5ba62fe94 Add lazy_static argument coolreader18 2019-06-14 19:49:37 -05:00
  • 48966a76e2 Make py_compile_bytecode!() an expression coolreader18 2019-06-14 18:20:02 -05:00
  • 7817cecc49 Merge pull request #1031 from palaviv/reversed coolreader18 2019-06-14 15:23:35 -05:00
  • 7e68f9924e Make Location's fields private again coolreader18 2019-06-14 14:52:30 -05:00
  • 4d0eb06724 Default source_path coolreader18 2019-06-14 12:40:01 -05:00
  • d2cde9a3bf Use bincode to deserialize into a CodeObject coolreader18 2019-06-14 12:26:35 -05:00
  • 8143b69165 Change imp_get_frozen_object coolreader18 2019-06-14 10:47:28 -05:00
  • 9a09a92f31 Merge pull request #1030 from palaviv/import-from-list coolreader18 2019-06-14 10:56:01 -05:00