Maxim Kurnikov
848714e18e
save passed object into the first .args parameter for dict/mappingproxy KeyError
2019-06-26 23:40:24 +03:00
coolreader18
6d5f381d70
Merge pull request #1056 from mkurnikov/args-in-exceptions
...
Add args attribute to exceptions, make __str__ and __repr__ compatible with CPython
2019-06-25 11:32:07 -05:00
Maxim Kurnikov
8852abc6c3
make exception __repr__ compatible with python3.6
2019-06-24 22:19:59 +03:00
Maxim Kurnikov
1e53e6c168
specify python 3.6 specifically as a Pipfile venv target
2019-06-24 22:19:01 +03:00
Maxim Kurnikov
060cd75783
simplify exception_repr a bit
2019-06-24 18:13:18 +03:00
Maxim Kurnikov
82101d9f1a
rename exc_repr -> exc_name to better describe what it refers to
2019-06-24 18:10:27 +03:00
Maxim Kurnikov
ff1049a1eb
fix regression in the exception representation in the traceback
2019-06-24 18:09:27 +03:00
Maxim Kurnikov
cd1d7b1a43
add args attribute to exceptions, make __str__ and __repr__ compatible with CPython
2019-06-24 17:30:20 +03:00
coolreader18
3085eadcb5
Merge pull request #1055 from romab1998/feature/ord_bytes_bytearray
...
add bytearray and bytes input types for ord()
2019-06-23 21:16:54 -05:00
Windel Bouwman
ba88716fbe
Merge pull request #1049 from RustPython/coolreader18/fromargs-span-errors
...
Improve errors messages for derive(FromArgs)
2019-06-23 20:59:11 +02:00
romab
7effca3533
added tests for ord() in tests/snippets
2019-06-23 23:25:12 +05:00
Aviv Palivoda
bb9d697a85
Merge pull request #1053 from RustPython/zen
...
Added the python zen module.
2019-06-23 18:27:31 +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
Windel Bouwman
fee9c99950
Merge pull request #1026 from rmliddle/BytesIO
...
String/BytesIO
2019-06-23 11:37:11 +02:00
romab
f2922e3f25
add bytearray and bytes input types for ord()
2019-06-23 11:34:12 +05: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
Windel Bouwman
ed63ebd0a3
Added the python zen module.
2019-06-22 13:13:34 +02:00
Windel Bouwman
2f75562f14
Merge pull request #1045 from RustPython/coolreader18/pyclassmethod-attr
...
Add #[pyclassmethod] to #[pyimpl]
2019-06-22 12:40:49 +02:00
coolreader18
658b6ca9b9
Fix errors
2019-06-21 20:20:21 -05:00
coolreader18
298b05d56d
Don't convert errors from js to python
2019-06-21 20:20:21 -05:00
coolreader18
8cf38f5b25
Move classmethods on JsValue to be normal methods
2019-06-21 20:20:21 -05:00
coolreader18
072c8725fc
Fix get_prop on primitives
2019-06-21 20:20:21 -05:00
coolreader18
886f77bdff
Add PyJsValue::instanceof
2019-06-21 20:20:20 -05:00
coolreader18
a3735da489
Move confirm and prompt to browser.py
2019-06-21 20:20:20 -05:00
coolreader18
5627ab2345
Add PyJsValue::construct()
2019-06-21 20:20:20 -05:00
coolreader18
93cdd94ab7
Add browser.py module
2019-06-21 20:20:20 -05:00
coolreader18
56bcb02a5e
Add _js module and fix imports
2019-06-21 20:20:20 -05:00
coolreader18
61b26878de
Add rustpython_vm::__exports module and fix warning
2019-06-21 20:20:19 -05:00
coolreader18
9bb5dcc663
Merge pull request #1051 from michelhe/get-rid-of-debug-print
...
Remove a mistakenly commited debug print
2019-06-21 13:58:04 -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
Michel Heily
c972e7c73e
Remove a mistakenly commited debug print
2019-06-21 12:57:58 +03: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
c359c430c2
Add set_file_attr to import_codeobj
2019-06-20 22:43:13 -05:00
coolreader18
aefbae40e4
Revert "Make CodeObject.source_path an Option<String>"
2019-06-20 12:01:20 -05:00
coolreader18
cb832e9aa1
Improve errors messages for derive(FromArgs)
2019-06-20 11:57:59 -05:00
coolreader18
86b8c07581
Update Cargo.lock
2019-06-19 20:03:31 -05:00
coolreader18
0ac42ac9aa
Add convenience functions
2019-06-19 17:30:09 -05:00
Windel Bouwman
30979d9f27
Merge pull request #1043 from yanganto/feat/unicode-iterals
...
support unicode literal
2019-06-19 19:13:13 +02:00
Antonio Yang
974dc683e4
support unicode literal
...
- support unicode literal \x with 2 digits
- support unicode literal \u with 4 digits
- support unicode literal \U with 8 digits
- avoid to parse \x as unicode literal in bytes
2019-06-20 00:30:38 +08:00
coolreader18
e68b4943ca
Add #[pyclassmethod] to #[pyimpl]
2019-06-18 20:37:08 -05:00
coolreader18
7554dfa72e
Merge pull request #1042 from palaviv/os-replace
...
Add os.rename and OSError.errno
2019-06-18 18:56:35 -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
17cd22b8e8
Test OSError errno
2019-06-18 19:06:41 +03:00
Aviv Palivoda
9ee1ad93e0
Test os.rename
2019-06-18 19:06:41 +03: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