Commit Graph

1575 Commits

Author SHA1 Message Date
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
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
d15da722ce Fix return types 2021-01-08 13:10:06 +09:00
Noah
be40a5d7b9 Fix clippy lints for Rust 1.49 2021-01-02 19:30:57 -06:00
Noah
d177b8f1a3 Merge pull request #2377 from carbotaniuman/fsum
Add fsum to the math module
2020-12-23 20:49:12 -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
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
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
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
881b280c46 Fix compilation on redox 2020-12-14 12:12:44 -06:00
Jeong YunWon
7db3f09e47 clean up clippy warnings 2020-12-07 03:53:25 +09:00
Noah
34bb5f0d7a Apply review suggestions 2020-12-05 16:36:38 -06:00
Noah
97029af713 Fast locals part 1 2020-12-05 16:36:00 -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
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
8ff7a528a2 Replace FuncArgs.insert with prepend_arg, optimize check_signals 2020-11-24 11:41:36 -06:00
Noah
2a427728a6 Use a custom vtable for PyObjectRef 2020-11-21 00:33:05 -06:00
owtotwo
bd068a1eb8 use oct number like CPython fileutils.c instead of decimal number leading zero 2020-11-18 18:27:17 +08:00
Noah
6d7eae98b8 Add iter, iternext slots & Allow deleting slot magic methods 2020-11-17 23:47:48 +09:00
Noah
64b951e7d1 Merge pull request #2325 from RustPython/coolreader18/string-intern
Add string interning
2020-11-16 00:20:21 -06:00
carbotaniuman
c478c64e2e Fix complex() and float() to user dunder methods
This also adds a `to_op_X` method in order to make arithmetic operations work due to the changes in `try_X`
2020-11-11 13:56:29 -06:00
Noah
2f232ecbe3 Implement string interning for variable names 2020-11-09 15:51:57 -06:00
Noah
f8d47c6409 Merge pull request #2324 from RustPython/coolreader18/fix-nothreading
Fix cell_lock, remove the RwLock<BufferOptions> from bytearray
2020-11-09 11:53:13 -06:00
Noah
a6805a5291 Make get_options() return &BufferOptions 2020-11-09 10:32:25 -06:00
Noah
b30ca99a09 Implement string interning 2020-11-08 21:35:04 -06:00
Noah
4528f17210 compiler/porcelain wrapper 2020-11-07 15:43:23 -06:00
Noah
b3851c8eb8 Split the ast from the parser, remove compiler dep on parser 2020-11-07 15:43:23 -06:00
Noah
916bb4cf1c Fix some other tests 2020-11-06 17:37:52 -06:00
Noah
76fa447915 Only define buffered.flush for writer/random 2020-11-06 17:37:51 -06:00
Noah
60d917c5e5 Don't lock textio while calling buffer methods 2020-11-06 17:37:51 -06:00
Noah
1d6b32ca98 Fix clippy/wasm errors 2020-11-06 17:37:50 -06:00
Noah
0dc81548ad Finish up buffered io 2020-11-06 15:41:52 -06:00
Noah
3d19d977aa Expose classes as attributes 2020-11-06 11:11:07 -06:00
Noah
ff55a2ef41 WIP seek 2020-11-06 11:11:07 -06:00
Noah
473d538cb9 Make Buffered{Reader,Writer} actually buffered 2020-11-06 11:11:06 -06:00