Commit Graph

3346 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
coolreader18
55fbe7f269 Merge pull request #1130 from RustPython/re-kung-fu
Add default argument to dict.pop.
2019-07-10 13:57:14 -05:00
Windel Bouwman
1612198dc1 Add default argument to dict.pop. Add logging and traceback python modules. 2019-07-10 20:10:52 +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
b2c515cbe5 Merge pull request #1129 from RustPython/coolreader18/no-bare-trait-objects
Cover up bare trait objects with a dyn
2019-07-10 18:51:50 +02:00
Windel Bouwman
fb23cc6e03 Add time.ctime, time.strftime 2019-07-10 17:37:42 +02:00
coolreader18
9204035d97 Cover up bare trait objects with a dyn 2019-07-10 09:41:58 -05:00
Windel Bouwman
0ab39651b8 Add time.gmtime function. 2019-07-10 16:12:30 +02:00
coolreader18
5edcecbdd6 Merge pull request #1127 from RustPython/re-kung-fu
Improve re module. Favor string.py over string.rs
2019-07-10 08:34:59 -05:00
Windel Bouwman
8a46cdf95d Merge pull request #1121 from RustPython/coolreader18/docs-logo
Add #![doc(html_logo_url = ...)] to crates
2019-07-10 14:52:14 +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
Windel Bouwman
bdd7fa88ec Merge pull request #1122 from palaviv/fix-exception-stack
Fix exception stack
2019-07-09 20:24:04 +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
b815d47d2a Use cloned 2019-07-09 18:38:43 +03:00
Aviv Palivoda
86cbc2e66d Fix exception stack 2019-07-09 17:48:27 +03:00
Windel Bouwman
e5d0a02fad Merge pull request #1119 from silmeth/text_file_io
make TextIOBase writable, handle malformed utf-8 in read()
2019-07-09 11:57:26 +02:00
silmeth
afec714a44 use vm.call_method() instead of get_method&invoke, remove String alloc 2019-07-09 10:53:40 +02:00
Windel Bouwman
53ce3624f5 Merge pull request #1120 from RustPython/coolreader18/flame-profiling
Add flamegraph profiling using flame and flamer
2019-07-09 08:03:22 +02: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
0893076643 Add #![doc(html_logo_url = ...)] to crates 2019-07-08 23:57:18 -05:00
coolreader18
f585f7ed10 Add frame name to its flame span 2019-07-08 21:49:18 -05:00
coolreader18
29e046f457 Add flamegraph profiling 2019-07-08 18:52:57 -05:00
silmeth
5450f8e8a3 use vm.try_class, early return on unsupported op error 2019-07-08 20:44:36 +02:00
coolreader18
5b32dfbed9 Fix clippy and azure pipelines 2019-07-08 13:24:06 -05:00
silmeth
03b7299150 make TextIOBase writable, handle malformed utf-8 in read() 2019-07-08 19:57:38 +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
fbeedb72bd Fix seq_mul with negative numbers 2019-07-07 15:38:54 -05:00
coolreader18
deca878c4b Use VecDeque::rotate_{left,right} 2019-07-07 15:38:52 -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
1c1ee5bb69 Add setter for maxlen 2019-07-07 15:38:46 -05:00
coolreader18
0ca6d24902 Add deque tests 2019-07-07 15:38:45 -05:00
coolreader18
5153ad52ca Add cmp methods to deque 2019-07-07 15:38:44 -05:00
coolreader18
805d536fa8 Add repr to deque 2019-07-07 15:38:43 -05:00
coolreader18
5956bcbf2c Add maxlen argument and getter 2019-07-07 15:38:43 -05:00
coolreader18
2be70eb353 Add deque to collections 2019-07-07 15:38:41 -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
f3e2abd290 Move importlib python files into vm crate. 2019-07-07 21:31:02 +02:00
Windel Bouwman
e45dfc6f51 Published unicode-casing to crates.io 2019-07-07 20:28:25 +02:00
Windel Bouwman
3d6673cf69 Formatting of macros.rs 2019-07-07 19:45:36 +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
Windel Bouwman
18bb56330e Merge pull request #1115 from RustPython/fstring-fix
Improve f-string syntax. Fixes #1099
2019-07-07 19:42:21 +02:00
Aviv Palivoda
e4322f52a9 Merge pull request #1112 from RustPython/parser-error-cleaning
parser error handling improvements.
2019-07-07 20:16:16 +03: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