Commit Graph

7723 Commits

Author SHA1 Message Date
pca006132
0af925051c changed Default::default() to () 2021-01-04 14:45:36 +08:00
pca006132
d04c0777fb formatting 2021-01-04 11:21:25 +08:00
pca006132
af3e7dee69 Implements AST Customization (#2388) 2021-01-04 10:33:22 +08:00
Noah
b0183b2d09 Merge pull request #2383 from qingshi163/memoryview-cast
Implement Memoryview cast
2021-01-03 13:31:13 -06:00
Noah
0786e4c440 Merge pull request #2393 from nomeata/master
Arguments to builtin.compile() can be named
2021-01-03 11:35:33 -06:00
Joachim Breitner
a41fa97bfc Arguments to builtin.compile() can be named
fixes #2390
2021-01-03 11:06:28 +01:00
Noah
be40a5d7b9 Fix clippy lints for Rust 1.49 2021-01-02 19:30:57 -06:00
Noah
8b31efb862 Merge pull request #2389 from carbotaniuman/delete_macro
Delete no_kwargs! macro
2021-01-02 18:25:47 -06:00
carbotaniuman
2dcd811ece Delete no_kwargs! macro 2021-01-02 12:05:38 -06:00
Noah
abb1f28f2e Merge pull request #2387 from carbotaniuman/magic-methods
use unsigned abs to avoid overflow
2020-12-30 15:12:44 -06:00
carbotaniuman
3ca003a94d Fix test 2020-12-30 11:53:49 -06:00
carbotaniuman
eecebef0e0 Add test 2020-12-30 10:56:00 -06:00
Kangzhi Shi
06ff99725b fix memoryview cast 2020-12-30 14:30:27 +02:00
carbotaniuman
9a717a319a use unsigned abs to avoid overflow 2020-12-29 22:17:15 -06:00
Kangzhi Shi
fcca2d72f4 Fix memoryview toreadonly 2020-12-27 19:05:33 +02:00
Kangzhi Shi
44048f60cb Implement memoryview cast 2020-12-27 19:03:05 +02:00
Noah
d177b8f1a3 Merge pull request #2377 from carbotaniuman/fsum
Add fsum to the math module
2020-12-23 20:49:12 -06:00
Noah
559123c617 Don't push something on the stack when starting a generator 2020-12-23 17:40:33 -06:00
carbotaniuman
353f558f67 Format 2020-12-22 16:25:28 -06:00
carbotaniuman
d9b9aea9f5 Address clippy 2020-12-22 11:31:40 -06:00
carbotaniuman
9faed3582a Address review 2020-12-21 22:29:15 -06:00
Noah
2123df6017 Don't keep a separate blockorder vec 2020-12-21 18:49:00 -06:00
Noah
8f536b986d Use boxvec for frame.stack 2020-12-21 18:48:56 -06:00
Noah
1ca5ca74dc Add common::BoxVec 2020-12-21 18:47:59 -06:00
Noah
5f0a13c1f9 Make get_value(PyObjectRef)->T functions pub(crate) 2020-12-21 18:47:59 -06:00
Noah
32a1dd60be Have a block-based IR for compiling, calculate max stack size 2020-12-21 18:47:58 -06:00
Noah
5d6c323989 Merge pull request #2376 from RustPython/coolreader18/bytecode-crate-reorganize
Flatten rustpython_bytecode::bytecode into the root of the crate
2020-12-20 09:26:30 -06:00
Jeong YunWon
ca91bdaa2a Merge pull request #2374 from RustPython/coolreader18/no-arr_macro
Remove arr_macro dependency
2020-12-21 00:05:28 +09:00
Jeong YunWon
7067119379 Merge pull request #2375 from RustPython/coolreader18/coros-have-names-too
Give generators, coroutines, async generators __name__s
2020-12-21 00:00:50 +09:00
carbotaniuman
0ff37540ab Add fsum to the math module 2020-12-19 19:32:08 -06:00
Noah
99a8d68933 Fix test_exceptions.testRaising 2020-12-19 15:09:20 -06:00
Noah
2246f8b6f0 marshal can give better error messages on eof 2020-12-19 15:00:47 -06:00
Noah
a5d45124fd Update other stuff to use the root of rustpython_bytecode 2020-12-19 14:59:07 -06:00
Noah
3627e4ace1 Move bytecode.rs to lib.rs 2020-12-19 14:59:06 -06:00
Noah
f1807c7675 Remove bytecode lib.rs 2020-12-19 14:59:06 -06:00
Noah
a7363110ae Update lz4_flex version 2020-12-19 14:59:06 -06:00
Noah
82c8e5434f Give generators, coroutines, async generators __name__s 2020-12-19 12:57:11 -06:00
Noah
96ae54ae5e Remove arr_macro dependency 2020-12-19 00:16:17 -06:00
Jeong YunWon
57805f791f Merge pull request #2372 from RustPython/coolreader18/functions-have-names
Show functions' names
2020-12-19 01:02:27 +09:00
Noah
13ea0efa9f sock.recv_into takes any rw buffer 2020-12-17 16:29:44 -06:00
Noah
5a56dd1a77 repr() functions with their names 2020-12-17 16:29:44 -06:00
Noah
a4aef93327 Make all builtin functions have names 2020-12-17 16:29:43 -06:00
Noah
b01cca97f4 Merge pull request #2361 from RustPython/fmt-prettier
Format the wasm/ directory using prettier
2020-12-16 10:27:08 -06:00
Noah
f958c8230c Add prettier checking to CI 2020-12-16 09:21:36 -06:00
Noah
dd14bb3516 Format wasm/ according to prettier rules 2020-12-16 09:21:07 -06:00
Noah
2d246f0ce9 Merge pull request #2365 from RustPython/coolreader18/optimize-bytecode-format
Optimize the size of Instruction
2020-12-16 09:01:27 -06:00
Jeong YunWon
aa625cb847 Merge pull request #2368 from RustPython/coolreader18/fix-redox
Fix compilation on redox
2020-12-16 22:51:09 +09:00
Noah
090720ab34 Fix jit 2020-12-14 16:33:05 -06:00
Noah
1be79c93b0 Make Instruction only 8 bytes 2020-12-14 15:55:47 -06:00
Noah
e87144e2c5 Add flags to the MakeFunction instruction 2020-12-14 14:35:17 -06:00