4757 Commits

Author SHA1 Message Date
Noah
a784d2f0f8 Add a std feature to vm 2021-01-14 12:48:54 -06:00
Noah
fe15286c1c Use PyRwBytesLike 2021-01-11 17:32:30 -06:00
Noah
a5ba2038fb Add SSLContext.options 2021-01-11 17:32:29 -06:00
Noah
10a7f5d9af Fix SslSocket methods, sorta 2021-01-11 17:32:29 -06:00
Noah
9647fce6d5 Add some more socket methods + other misc fixes 2021-01-11 17:32:29 -06:00
Noah
8cdef9e1fa Use ahash in the vm 2021-01-08 18:08:21 -06:00
Noah
56c225c748 Use ahash/phf in parser 2021-01-08 17:09:09 -06:00
Jeong YunWon
70c96258b1 Merge pull request #2379 from RustPython/coolreader18/rework-pystruct
Rework pystruct, again
2021-01-08 16:15:14 +09:00
Jeong YunWon
7417c377a9 Merge pull request #2359 from youknowone/return-type
Fix return types
2021-01-08 15:46:37 +09:00
Noah
75f9ea2f29 Update rand deps, replace statrs with puruspe 2021-01-07 23:44:45 -06:00
Noah
76306b2260 Add half-float support for struct 2021-01-07 23:44:44 -06:00
Noah
108e1ef38b Rework pystruct, again 2021-01-07 23:44:44 -06:00
Jeong YunWon
0b58527c6a Merge pull request #2373 from RustPython/coolreader18/blockir
Have a block-based IR for compiling, calculate max stack size
2021-01-08 13:16:31 +09:00
Jeong YunWon
d15da722ce Fix return types 2021-01-08 13:10:06 +09:00
Jeong YunWon
1c12a80682 Merge pull request #2392 from RustPython/fix-clippy-1.49
Fix clippy lints for Rust 1.49
2021-01-08 11:32:45 +09:00
Noah
b0183b2d09 Merge pull request #2383 from qingshi163/memoryview-cast
Implement Memoryview cast
2021-01-03 13:31:13 -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
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
8f536b986d Use boxvec for frame.stack 2020-12-21 18:48:56 -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
carbotaniuman
0ff37540ab Add fsum to the math module 2020-12-19 19:32:08 -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
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
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
2d246f0ce9 Merge pull request #2365 from RustPython/coolreader18/optimize-bytecode-format
Optimize the size of Instruction
2020-12-16 09:01:27 -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
Noah
98c3df2a94 Manage the stack a bit more efficiently 2020-12-14 14:32:31 -06:00
Noah
f93934f0c6 Make Continue have the target it's continuing to 2020-12-14 14:25:19 -06:00
Noah
3280a1655a Optimize the size of Instruction 2020-12-14 14:25:19 -06:00
Noah
881b280c46 Fix compilation on redox 2020-12-14 12:12:44 -06:00