Commit Graph

3207 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
c0600860c8 Merge pull request #1081 from RustPython/travis-config
Disable code coverage on all branches except the master branch.
2019-06-29 16:16:16 +02:00
Windel Bouwman
0a242b69a5 Merge pull request #1067 from palaviv/memoryview-slice
Memoryview slice
2019-06-29 14:41:46 +02:00
Windel Bouwman
5f3e5e1602 Disable code coverage on all branches except the master branch. 2019-06-29 14:18:54 +02:00
Windel Bouwman
f4d63c923a Switch to better supported crypto lib. 2019-06-29 14:03:19 +02:00
Windel Bouwman
09823a0a64 Merge pull request #1078 from corona10/sys.byteorder
sys.byteorder: Implement sys.byteorder
2019-06-29 13:24:41 +02:00
Windel Bouwman
18a49d10b5 Merge pull request #1077 from hannut91/add-tuple-rmul
Add tuple.__rmul__
2019-06-29 13:19:13 +02:00
Seo Sanghyeon
87d866d414 Implement os.lstat 2019-06-29 17:21:11 +09:00
Dong-hee Na
103559101e sys.byteorder: Implement sys.byteorder 2019-06-29 16:16:03 +09:00
Aviv Palivoda
32be3bc110 Merge pull request #1071 from hannut91/add-resolve-path
Fix TestWithTempDir test to pass on Mac
2019-06-29 10:15:23 +03: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
hannut91
91d901abdb Add tuple.__rmul__
Add tuple.__rmul__ and uncomment test snippet of __rmul__.
2019-06-29 16:02:42 +09:00
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
5a8613c78a Add tests for memoryview 2019-06-28 10:28:48 +03:00
Aviv Palivoda
7d2c4b6b6e memoryview support __getitem__ 2019-06-28 10:19:44 +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
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
Windel Bouwman
9e194b3904 Add endianness support to struct module. 2019-06-26 16:38:11 +02: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