Noah
0e8a0b29d7
Merge pull request #2555 from deantvv/os-getloadavg
...
os: add getloadavg
2021-04-16 12:14:32 -05:00
Dean Li
e40f306b47
os: add getloadavg
2021-04-16 22:58:10 +08:00
Padraic Fanning
e2aca3e7a5
Sort keywords in kwlist
2021-04-15 17:03:19 -04:00
Padraic Fanning
4cf4eb83a1
Add index function to operator module
2021-04-14 21:00:45 -04:00
Noah
763c18d8aa
Merge pull request #2544 from RustPython/coolreader18/misc-fixes
...
Misc fixes related to IPython
2021-04-14 15:14:54 -05:00
Noah
9d7021c4ff
Merge pull request #2548 from deantvv/os-symlink
...
Fix os.symlink 3rd argument
2021-04-12 09:06:26 -05:00
Dean Li
ac93edbee7
os: fix symlink signature to python doc
...
From python doc,
`os.symlink(src, dst, target_is_directory=False, *, dir_fd=None)`
which means that `target_is_directory` is both a positional and keyword argument.
2021-04-12 06:43:51 +08:00
Noah
21e6910e1d
Misc wrong behavior for function props, module.__init__, type.getattro
2021-04-11 17:38:44 -05:00
Noah
235074faf2
Fully implement SNI in _ssl
2021-04-11 17:38:44 -05:00
Noah
3db00be5f3
Add termios module
2021-04-11 17:38:44 -05:00
Noah
c2345698ba
Add fileno() to IOBase
2021-04-11 17:38:44 -05:00
Noah
044f9c1a99
Add line_buffering arg to TextIOWrapper
2021-04-11 17:38:44 -05:00
Noah
0056cbc880
Remove builtin tokenize
2021-04-11 17:38:44 -05:00
Noah
730f37c91a
Fix path_from_fd
2021-04-11 13:21:16 -05:00
Noah
8d68e17680
Merge pull request #2541 from RustPython/coolreader18/try-microbenchmarks-again
...
Optimize(?) microbenchmarks some more
2021-04-09 14:07:24 -05:00
Noah
f9555fd75d
Fix getrandbits for k>32
2021-04-07 10:52:40 -05:00
Dean Li
b065c059d2
os: Don't consume File in path_from_fd
2021-04-07 22:40:06 +08:00
Noah
e6b5219393
Fix remaining test_random overflows
2021-04-05 23:15:25 -05:00
Dean Li
5dae7aacda
Remove vm in path_from_fd
2021-04-05 11:13:39 +08:00
Dean Li
84e1cf87ab
Extract path_from_fd from make_path and listdir
2021-04-05 10:09:12 +08:00
Dean Li
204dccc477
os: Add support_fd for listdir
...
Use same approach as make_path to add support_fd for `listdir`
After this patch, `os.fwalk` is available.
Noted that, test coverage doesn't increase due to the lack of 3rd argument in `os.symlink`.
2021-04-04 22:34:24 +08:00
Dean Li
a2b97f0f96
os: update support features for stat and fstat
2021-04-04 22:34:24 +08:00
Noah
286c784bea
Fix overflow in _random
2021-04-03 16:40:40 -05:00
Noah
68b219ce2f
Add rustyline to redox patches
2021-04-03 16:34:55 -05:00
Noah
605a353bc0
Merge pull request #2518 from RustPython/get-method-opt
...
Add optimized method lookup to avoid creating intermediate method objects
2021-03-27 15:05:04 -05:00
Jeong YunWon
843895c04d
Merge pull request #2531 from RustPython/clippy-1.51
...
Fix clippy warnings for 1.51
2021-03-28 02:36:20 +09:00
Noah
76f8ed5299
Fix clippy warnings for 1.51
2021-03-26 17:54:22 -05:00
Noah
862c80f807
Fix closing fd for dir then calling closedir
2021-03-25 08:06:58 -05:00
Noah
25ecd7c38b
Upgrade dependencies
2021-03-25 08:06:56 -05:00
Noah
cba3a2530e
Merge pull request #2515 from deantvv/os-enhancement
...
Implement dir_fd in os.open
2021-03-19 21:49:17 -05:00
Dean Li
9963bf9fe4
Move filepath behind feature gate
2021-03-20 09:11:14 +08:00
Dean Li
d6d689dc1f
os.open: make make_path return Cow
2021-03-16 20:15:26 +08:00
Noah
7d813761c5
Move io.rs over to vm.call_method
2021-03-15 09:45:07 -05:00
Noah
f50f930255
Add setattro slot, split call_method and call_special_method
2021-03-15 09:45:06 -05:00
Noah
70b3aa871e
Fix zlib decompress for longer streams
2021-03-14 12:49:59 -05:00
Noah
d11cfd52e7
Enable zlib on wasm
2021-03-14 12:49:15 -05:00
Dean Li
cdcc191c0b
Use cfg_if! for trait FilePath
2021-03-13 14:47:29 +08:00
Dean Li
9e6a7ae1a1
Exclude trait FilePath for wasi
2021-03-13 14:10:57 +08:00
Dean Li
ead42f2903
Implement dir_fd in os.open
...
Now pass `test_posix.py PosixTester.test_open_dir_fd`
Implement `dir_fd` in
`make_path` and `os.open(path, flags, mode=0o777, *, dir_fd=None)`
2021-03-13 11:23:18 +08:00
Noah
6da8b937da
Add freebsd support
2021-03-08 08:08:54 -06:00
Dean Li
974ed856ba
Implement os.closerange
...
`closerange` use `close` internally
2021-03-06 04:51:49 +00:00
Noah
6b0c0ca8cf
Switch to upstream parking_lot git, fix compilation on wasi
2021-02-27 15:08:12 -06:00
Noah
491c4e775b
Fix json.scanstring unicode handling
2021-02-20 21:04:30 -06:00
Noah
27fdb9eef1
Decompress.decompress() takes PyBytesLike
2021-02-20 21:04:30 -06:00
Noah
7d99e49fd9
Parse address tuple based on socket family
2021-02-20 21:04:30 -06:00
Noah
fb2efa95f9
Make getaddrinfo return a full tuple for inet6
2021-02-20 21:04:30 -06:00
Noah
b0f9c2809e
Add SSLContext.compression
2021-02-20 21:04:30 -06:00
Noah
ede2d9ed16
Add SSLSocket.cipher
2021-02-20 21:04:30 -06:00
Noah
a0d9481fe5
Add RLock._is_owned
2021-02-20 21:04:30 -06:00
Noah
e6d9af43ca
Miscellaneous fixes for aiohttp
2021-02-20 21:04:29 -06:00