Commit Graph

1178 Commits

Author SHA1 Message Date
Windel Bouwman
f7320cf545 Move Scope struct to its own file, making the frame module private in the process. 2019-07-23 20:39:47 +02:00
Windel Bouwman
25816a2775 Add some extra profiling trace points. 2019-07-23 19:55:04 +02:00
Adolfo Gonzalez III
208b37a691 Merged 2019-07-21 01:08:31 -05:00
Adolfo Gonzalez III
18b0f631ac Ran cargo fmt --all 2019-07-20 20:24:43 -05:00
Adolfo Gonzalez III
b7c035fdde Implemented list.__reversed__ 2019-07-19 16:08:16 -05:00
Windel Bouwman
a0abe08c9a Merge pull request #1149 from RustPython/coolreader18/cpython-libs3
Add codecs, locale, shutil, errno, and encodings modules
2019-07-15 17:12:08 +02:00
coolreader18
f59d84a750 Add codecs, locale, shutil, errno, and encodings modules 2019-07-14 23:09:59 -05:00
dmitrijoseph
d8c06d7898 cargo fmt 2019-07-14 20:38:58 -04:00
dmitrijoseph
eba282dcbe Implemented lt, gt, le, ge 2019-07-14 18:47:45 -04:00
coolreader18
fb3ccadc17 Merge pull request #1140 from RustPython/redox
Add Redox OS support, via platform checks!
2019-07-13 16:59:56 -05:00
Windel Bouwman
d3e1bfe548 Merge pull request #1141 from RustPython/time-module-fixes
Add mktime function.
2019-07-13 22:45:26 +02:00
coolreader18
402eb8a48b Merge branch 'master' into redox 2019-07-13 11:46:43 -05:00
Windel Bouwman
e705ec292b Add mktime function. 2019-07-13 11:26:44 +02:00
Windel Bouwman
704b15750e Add optimize flag to ignore assert statements. 2019-07-12 18:41:25 +02:00
coolreader18
2c65988ea7 Switch to hexf_parse 2019-07-11 18:53:47 -05:00
Windel Bouwman
140ad71f05 Add testcase for logging module. 2019-07-10 21:02:04 +02: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
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
coolreader18
9204035d97 Cover up bare trait objects with a dyn 2019-07-10 09:41:58 -05: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
coolreader18
5b32dfbed9 Fix clippy and azure pipelines 2019-07-08 13:24:06 -05:00
coolreader18
fbeedb72bd Fix seq_mul with negative numbers 2019-07-07 15:38:54 -05:00
coolreader18
9d3fa18ec8 Add __mul__ to deque 2019-07-07 15:38:47 -05:00
coolreader18
5153ad52ca Add cmp methods to deque 2019-07-07 15:38:44 -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
18bb56330e Merge pull request #1115 from RustPython/fstring-fix
Improve f-string syntax. Fixes #1099
2019-07-07 19:42:21 +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
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
coolreader18
fbd0c599a9 Merge pull request #1074 from JimJeon/feature/rmod
Implement int.__rmod__
2019-06-30 20:33:15 -05:00
JimJeon
2f1d4a8d29 Fix with rustfmt 2019-07-01 09:44:47 +09: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
silmeth
d0de3be2a9 fix float–int cross-type comparisons
Fixes #1069
2019-06-29 16:50:09 +02:00
Windel Bouwman
0a242b69a5 Merge pull request #1067 from palaviv/memoryview-slice
Memoryview slice
2019-06-29 14:41:46 +02:00
JimJeon
5172a098bf Changed function name to rmod 2019-06-29 17:38:01 +09:00
Dong-hee Na
b1aa10d03e Fix complex representation for negative imaginary number case. 2019-06-29 16:30:34 +09:00
hannut91
91d901abdb Add tuple.__rmul__
Add tuple.__rmul__ and uncomment test snippet of __rmul__.
2019-06-29 16:02:42 +09:00
JimJeon
1e568f1044 Implement int.__rmod__
Extracted inner_mod function and used in int.__mod__ and int.__rmod__
and also added test snippets of int.__mod__ and int.__rmod__.
2019-06-29 15:21:28 +09:00
Aviv Palivoda
7d2c4b6b6e memoryview support __getitem__ 2019-06-28 10:19:44 +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
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
Michel Heily
c972e7c73e Remove a mistakenly commited debug print 2019-06-21 12:57:58 +03:00
coolreader18
aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" 2019-06-20 12:01:20 -05:00
Michel Heily
6fe2c43bf7 Move lambda to its own function in do_cformat 2019-06-17 19:35:09 +03:00
Michel Heily
fca4178353 Avoid unnecessary allocation in modulo formatting 2019-06-17 19:35:09 +03:00
Michel Heily
5d38b9b624 Simplify error handling for CFormatString::from_str 2019-06-17 19:35:09 +03:00
Michel Heily
8d612f3a36 Add %c formatting 2019-06-17 19:35:09 +03:00
Michel Heily
e374aff0bc Support '*' for width and precsision for printf-style formatting 2019-06-17 19:35:09 +03:00
Michel Heily
d5ffecea32 objstr: Improve errors for modulo format 2019-06-17 19:35:09 +03:00