Commit Graph

1074 Commits

Author SHA1 Message Date
Windel Bouwman
2893780036 Check output of logger calls. 2019-07-11 17:48:10 +02:00
Windel Bouwman
140ad71f05 Add testcase for logging module. 2019-07-10 21:02:04 +02:00
Windel Bouwman
98e6486c98 Merge pull request #1128 from RustPython/re-kung-fu
Add time.gmtime function.
2019-07-10 20:06:43 +02:00
Windel Bouwman
dd20263fba Merge pull request #1123 from corona10/fix_complex_hash
complex: Fix hash function to work correctly
2019-07-10 19:27:59 +02:00
Windel Bouwman
fb23cc6e03 Add time.ctime, time.strftime 2019-07-10 17:37:42 +02:00
Windel Bouwman
0ab39651b8 Add time.gmtime function. 2019-07-10 16:12:30 +02:00
Windel Bouwman
d16c288ef1 Improve re module. Favor string.py over string.rs 2019-07-10 11:19:01 +02:00
Dong-hee Na
d349d254f6 complex: Fix hash function to work correctly
Currently, hash(3.1-4.2j) or hash(3.1+4.2j) is crashed due to
overflow error on RustPython.

This patch will fix this issue.
2019-07-10 09:21:19 +09:00
Windel Bouwman
9261d944a7 Merge pull request #1124 from corona10/sys_maxunicode
sys: Fix sys.maxsize and add sys.maxunicode
2019-07-09 20:33:09 +02:00
Dong-hee Na
2e618af4f9 sys: Fix sys.maxsize and add sys.maxunicode
Current implementation of sys.maxsize is unsigned type
but AFAIK the type of sys.maxsize should be identical with
Py_ssize_t which is known as signed type.

sys.maxunicode is hardcoded from cpython repository
https://github.com/python/cpython/blob/master/Python/sysmodule.c#L2654
2019-07-10 02:48:45 +09:00
Aviv Palivoda
86cbc2e66d Fix exception stack 2019-07-09 17:48:27 +03:00
Windel Bouwman
86decbb172 Merge pull request #1097 from RustPython/coolreader18/collections-deque
Add deque to collections
2019-07-09 07:16:56 +02:00
coolreader18
7b23a96d4b Fix warnings test 2019-07-07 17:27:04 -05:00
coolreader18
1c1440eb78 Add __len__ to deque 2019-07-07 15:38:57 -05:00
coolreader18
d891c87c4f Add maxlen as a named arg 2019-07-07 15:38:49 -05:00
coolreader18
9d3fa18ec8 Add __mul__ to deque 2019-07-07 15:38:47 -05:00
coolreader18
0ca6d24902 Add deque tests 2019-07-07 15:38:45 -05:00
Windel Bouwman
ff21c14c49 Merge pull request #1116 from RustPython/remove-cpython-bytecode-tests
Remove bytecode compilation.
2019-07-07 21:54:38 +02:00
Windel Bouwman
fabc260b01 Merge pull request #1117 from silmeth/exc-repr
make exceptions repr tests Python 3.7-friendly by eval-repr round-trip
2019-07-07 19:44:28 +02:00
silmeth
fe9e71167f fix big int crash in json_snippets – actually use a big integer 2019-07-07 17:17:08 +02:00
silmeth
1b539dedd0 move asserts out of round trip test utils 2019-07-07 17:13:57 +02:00
silmeth
9fee59e483 make exceptions repr tests Python 3.7-friendly by eval-repr round-trip 2019-07-07 15:39:17 +02:00
Windel Bouwman
310f89ec21 Remove bytecode compilation. Add feature to enable verbose logging in vm. 2019-07-07 15:23:43 +02:00
Windel Bouwman
7e138eca3b Improve f-string syntax. Fixes #1099 2019-07-07 12:04:43 +02:00
Aviv Palivoda
2edba36de7 Allow skipping of unknown modules 2019-07-04 23:58:01 +03:00
Maxim Kurnikov
9ce5240598 add name, path, msg attributes to ImportError 2019-07-03 22:18:49 +03:00
coolreader18
f34f16b2cc Merge pull request #1095 from RustPython/coolreader18/whats_left-modules
Add module listing to whats_left.sh
2019-07-03 12:58:09 -05:00
Maxim Kurnikov
8162b87a00 Do not pollute stack when if-expression condition evaluated to False 2019-07-03 16:13:16 +03:00
coolreader18
3668250c12 Show module attributes missing 2019-07-01 14:21:29 -05:00
Windel Bouwman
4a108c1ef5 Merge pull request #1059 from RustPython/unicodedata
Add initial unicodedata module.
2019-07-01 20:44:14 +02:00
coolreader18
f8cf39ebbb Change sys.path in not_impl_gen.py 2019-07-01 13:20:04 -05:00
coolreader18
982b2f2c14 Add comment to not_impl_gen.py 2019-07-01 13:11:43 -05:00
coolreader18
307990d5de Add module listing to whats_left.sh 2019-07-01 13:06:45 -05:00
coolreader18
fbd0c599a9 Merge pull request #1074 from JimJeon/feature/rmod
Implement int.__rmod__
2019-06-30 20:33:15 -05:00
Windel Bouwman
13be2cf3f4 Merge master branch 2019-06-30 21:22:33 +02:00
silmeth
5dddd02bca improve (de)serialization: no crash on BigInts, non-string map keys 2019-06-30 16:10:58 +02:00
Windel Bouwman
a332b74ad8 Merge pull request #1064 from RustPython/cryptomods
Add initial hashlib module.
2019-06-30 10:58:49 +02:00
Windel Bouwman
f0492eefb2 Merge pull request #1084 from silmeth/int-float-comparison
fix float–int cross-type comparisons
2019-06-30 09:25:49 +02:00
Aviv Palivoda
4bf317c3af Merge pull request #1076 from corona10/complex_repr
Fix complex representation for negative imaginary number case.
2019-06-29 21:03:16 +03:00
Aviv Palivoda
ed737026c3 Merge pull request #1082 from RustPython/xdrlib
Add xdrlib.py
2019-06-29 20:46:42 +03:00
Windel Bouwman
c7004f7b0f Merge pull request #1070 from corona10/ellipsis
Add "Ellipsis" for Ellipsis
2019-06-29 16:58:13 +02:00
silmeth
d0de3be2a9 fix float–int cross-type comparisons
Fixes #1069
2019-06-29 16:50:09 +02:00
Windel Bouwman
df31abea98 Merge branch 'master' of https://github.com/RustPython/RustPython into cryptomods 2019-06-29 16:46:00 +02:00
Dong-hee Na
8c318dcd3c Add "Ellipsis" for Ellipsis
Currently, only "..." works for Ellipsis type.
This PR will fix this code to work.
```python
a = Ellipsis
b = ...
a is b
```
2019-06-29 23:34:27 +09:00
Windel Bouwman
ddc24d67dc Add xdrlib.py 2019-06-29 14:44:39 +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
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
Dong-hee Na
b1aa10d03e Fix complex representation for negative imaginary number case. 2019-06-29 16:30:34 +09:00