Commit Graph

7164 Commits

Author SHA1 Message Date
Noah
cd87f6da25 Try some mini-optimizations 2020-12-05 16:36:37 -06:00
Noah
7c58f4a0c8 Fast locals part 3 2020-12-05 16:36:35 -06:00
Noah
92b8e59158 Fast locals part 2 2020-12-05 16:36:00 -06:00
Noah
97029af713 Fast locals part 1 2020-12-05 16:36:00 -06:00
Noah
479610f3cb Move compiler snapshots 2020-12-05 16:36:00 -06:00
Noah
3d4474413b Add PyTupleTyped 2020-12-05 16:36:00 -06:00
Noah
6c20c3e50c Add the cell class 2020-12-05 16:36:00 -06:00
Noah
2c29a33d00 Add support for deleter on getsets 2020-12-05 16:36:00 -06:00
Noah
fbc8ebc4c6 Merge pull request #2353 from RustPython/coolreader18/bin-lib
Give the `rustpython` crate a library component
2020-12-05 12:46:25 -06:00
Noah
6dc93c5e5a Add doc comments 2020-12-01 16:03:52 -06:00
Noah
95c1392d65 Re-add main.rs using the rustpython lib 2020-12-01 15:06:02 -06:00
Noah
b3090040f0 Move main.rs to lib.rs 2020-12-01 15:05:13 -06:00
Noah
0cbdb8a208 Merge pull request #2346 from isidentical/issue-2345
Fix crash on lexing octal escapes bigger than u8::MAX
2020-11-30 10:34:17 -06:00
Batuhan Taskaya
d14176146a Directly unwrap 2020-11-30 18:04:38 +03:00
Noah
d462f64a6e Merge pull request #2348 from isidentical/issue-2347
PEP 498 compatibility: parenthesized expressions for f-strings
2020-11-30 00:14:23 -06:00
Batuhan Taskaya
e26df2c793 Apply cargo fmt 2020-11-29 20:11:48 +03:00
Batuhan Taskaya
26908f17ed Fix crash on lexing octal escapes bigger than u8::MAX 2020-11-29 20:11:48 +03:00
Batuhan Taskaya
a382284d30 PEP 498 compatability: parenthesized expressions for f-strings 2020-11-29 17:57:49 +03:00
Noah
9676ddb627 Merge pull request #2344 from isidentical/issue-2343
Add NamedExpression AST class
2020-11-28 14:47:41 -06:00
Batuhan Taskaya
a71aea8fdd Add Slice object too 2020-11-28 16:16:19 +03:00
Batuhan Taskaya
db6b9ed3d8 Add NamedExpression AST class 2020-11-28 16:11:30 +03:00
Noah
3ff3a2c0a1 Move function/mod.rs back to function.rs 2020-11-27 00:49:11 -06:00
Noah
93ec575423 Merge pull request #2341 from carbotanium/test
Change sum and round to take keywords
2020-11-24 16:20:18 -06:00
Noah
7c32f8c86a Merge pull request #2340 from RustPython/coolreader18/no-labelmap
Remove the need for a label_map in CodeObject
2020-11-24 14:02:58 -06:00
Noah
cf428e13d4 Merge pull request #2339 from RustPython/coolreader18/mini-opts
Replace FuncArgs.insert with prepend_arg, optimize check_signals
2020-11-24 12:56:40 -06:00
Noah
5781fa437d Merge pull request #2336 from RustPython/coolreader18/pyobjectref-custom-vtable
Manually implement a vtable for PyObjectRef
2020-11-24 11:58:11 -06:00
Noah
085a9d4f5e Don't use a wildcard to prevent future mistakes 2020-11-24 11:57:14 -06:00
Noah
8ff7a528a2 Replace FuncArgs.insert with prepend_arg, optimize check_signals 2020-11-24 11:41:36 -06:00
Noah
749e6afd3d Merge pull request #2338 from carbotaniuman/frozenset
Make frozenset idempotent and unskip some set tests
2020-11-23 21:16:25 -06:00
Noah
8b0e806e39 Fix rustpython-jit to not use label_map 2020-11-23 20:10:46 -06:00
Noah
6082049cab Remove the need for a label_map in CodeObject 2020-11-23 14:41:56 -06:00
Noah
fd8d9c90a8 Merge pull request #2335 from carbotaniuman/number-reform
Return same object if exact type in int, float, complex and fix pow
2020-11-23 10:39:00 -06:00
Noah
f48e547981 Merge pull request #2316 from ChJR/feature/format_float
Unify float formatting
2020-11-21 17:40:46 -06:00
Noah
3efa8a4e65 Move allow attribute to specific function 2020-11-21 17:36:40 -06:00
carbotaniuman
24b3670516 Allow clippy 2020-11-21 15:58:42 -06:00
carbotaniuman
6484df327e Make frozenset idempotent and unskip some set tests 2020-11-21 14:57:10 -06:00
ChJR
3878e8ef49 Improve code quality 2020-11-22 03:32:46 +09:00
coolreader18
c5fca81eae Fix regrtest results collection 2020-11-21 01:43:28 -06:00
Noah
31f4999dfd Flatten PyObject/PyInner into one struct 2020-11-21 00:33:10 -06:00
Noah
7a5ba0efcc Update pytype to be a bit more idiomatic 2020-11-21 00:33:05 -06:00
Noah
8cb1cfa56d Add a bunch of comments 2020-11-21 00:33:05 -06:00
Noah
0d50118e44 Run tests under miri on CI 2020-11-21 00:33:05 -06:00
Noah
fafee7fe0d Use static_assertions to verify the safety of init_type_hierarchy 2020-11-21 00:33:05 -06:00
Noah
2a427728a6 Use a custom vtable for PyObjectRef 2020-11-21 00:33:05 -06:00
Noah
1c6d7711aa Fix clippy error with rust update 2020-11-20 23:10:43 -06:00
ChJR
f124ec8197 Fix more trailing zeros in general formatting of floating numbers 2020-11-20 03:19:28 +09:00
ChJR
6da4d9714a Add more tests for general formatting of floating numbers
Check for trailing zeros.
2020-11-20 03:14:19 +09:00
ChJR
3e3bd07ff8 Fix overflow of string reverse iteration
This issue does not appear in CI.
2020-11-20 02:46:53 +09:00
ChJR
0eba3ba80b Prevent stack overflow from format_general which is using precision 2020-11-20 02:43:56 +09:00
ChJR
4f1232a0c2 Fix error of CI 2020-11-20 02:41:44 +09:00