Commit Graph

1565 Commits

Author SHA1 Message Date
Noah
108e1ef38b Rework pystruct, again 2021-01-07 23:44:44 -06: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
Noah
a1ca535f78 Make bufferoptions.format a Cow<'static, str> 2020-11-06 11:11:06 -06:00
Noah
07457254d6 Implement buffered io sans buffering 2020-11-06 11:11:06 -06:00
Noah
7beb932563 Distinguish between to_index and to_index_opt 2020-11-06 11:11:06 -06:00
Noah
b5b15e0f3a os.unlink can remove junctions on windows 2020-11-02 22:49:47 -06:00
Noah
68af202208 Give support funcs names 2020-11-02 15:03:44 -06:00
Noah
9105c44bc1 Add more winreg functions 2020-11-02 12:42:43 -06:00
Jeong YunWon
8aea12b8c9 Fix unused variables warnings 2020-11-03 00:28:19 +09:00
Jeong YunWon
697d6eddcd Merge pull request #2294 from RustPython/coolreader18/pyobj-constants
Store PyObjectRef in CodeObject constants
2020-11-03 00:03:30 +09:00
hyperbora
babebf0794 fix math.acosh 2020-10-31 00:26:18 +09:00
Noah
525ff493a1 Merge pull request #2311 from rodrigocam/master
Add socket sendfile function
2020-10-28 12:18:52 -05:00