hannut91
1dc5daa4d8
Fix TestWithTempDir test to pass on Mac
...
Fix TestWithTmpeDir test that comapre os.getcwd() and tmpdir.
os.getcwd() returns the result of resolving the symbolic link. But tmpdir
absolute path. Testing fails on Mac because the /tmp directory is a symbolic
link. Comparing the results of resolving tempdir will pass the test. But
RustPython does not implement lstat, so it does not pass, but in CPython The
test passes.
2019-06-29 14:58:44 +09:00
coolreader18
212522a4bb
Merge pull request #1068 from palaviv/imp-_fix_co_filename
...
Add empty _imp._fix_co_filename
2019-06-28 05:26:24 -05: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
Maxim Kurnikov
848714e18e
save passed object into the first .args parameter for dict/mappingproxy KeyError
2019-06-26 23:40:24 +03:00
Windel Bouwman
0642412027
Merge pull request #1057 from RustPython/coolreader18/cpython-libs2
...
Add CPython library modules needed for unittest
2019-06-26 21:56:34 +02:00
coolreader18
c78c95f03a
Add CPython library modules needed for unittest
2019-06-26 11:39:10 -05:00
coolreader18
1f9fa724e0
Merge pull request #1063 from palaviv/eof-error
...
Add EOFError
2019-06-26 10:42:42 -05:00
Aviv Palivoda
f2dff1cd20
Add EOFError
2019-06-26 18:25:47 +03:00
Aviv Palivoda
8cdf19c5f9
FileIO.write support ByteArray
2019-06-26 18:17:47 +03:00
coolreader18
c96680a70c
Merge pull request #1050 from palaviv/relative-import
...
Support relative import
2019-06-25 15:50:26 -05: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
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
Aviv Palivoda
da4c0bccfa
pass local variables to __import__ only if there is a frame
2019-06-25 18:15:28 +03: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
Aviv Palivoda
e8c0644a04
Test relative import from upper level
2019-06-23 18:21:02 +03:00
Aviv Palivoda
ae5259670c
Test relative import
2019-06-23 18:21:02 +03:00
Aviv Palivoda
a5276df980
Support relative import
2019-06-23 18:21:02 +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