Commit Graph

1547 Commits

Author SHA1 Message Date
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
Noah
ad3922ae91 Skip shutil test 2020-10-28 11:12:01 -05:00
Rodrigo Oliveira
a64ecbf00a Process headers and trailers as array of byte buffers 2020-10-27 20:45:29 -03:00
Rodrigo Oliveira
01e6f735a0 Remove socket sendfile wrong implementation 2020-10-27 17:50:40 -03:00
Rodrigo Oliveira
a656c51696 Add os sendfile function and python test 2020-10-27 17:14:53 -03:00
Kangzhi Shi
eaf4bad2d1 fix array with float 2020-10-27 19:18:18 +02:00
Rodrigo Oliveira
00920babba Add socket sendfile function 2020-10-26 14:55:22 -03:00
Noah
026f396e98 Use std::os::raw::c_* instead of libc::c_* for wasm compat 2020-10-26 12:14:00 -05:00
Noah
59169aa2ce Use a static type for struct.error 2020-10-26 12:13:52 -05:00
Noah
0f84bd4070 Update pystruct + array 2020-10-26 12:13:24 -05:00
Noah
25a388cb70 Merge pull request #2309 from RustPython/coolreader18/math-fixes
Implement nextafter in Rust
2020-10-26 12:01:51 -05:00
Noah
b1144b773d Merge branch 'master' into socket/resolve-right-ip-family 2020-10-26 08:56:21 -05:00
Arthur Woimbée
b74a057ec9 socket/get_addr: remove IpAddrFmt 2020-10-26 11:26:44 +01:00
Jeong YunWon
cfb25a5a6e Merge pull request #2301 from RustPython/coolreader18/rework-staticcell
Make StaticCell less complex to use
2020-10-26 14:04:27 +09:00
Noah
72f8f20ab2 Move timing_safe_cmp to rustpython-common 2020-10-25 15:28:36 -05:00
Noah
e772b42f36 Fix a few math tests and implement nextafter in rust 2020-10-25 13:43:33 -05:00
Arthur Woimbée
9504bc469f socket: resolve addresses according to socket family (ipv4/6) 2020-10-24 17:52:02 +02:00
Kangzhi Shi
287e16351c Impl readinto for BufferedReader 2020-10-24 16:26:18 +02:00
Noah
dbed94fe87 socket.{gaierror,timeout} as static types(?) 2020-10-22 14:41:23 -05:00