Commit Graph

4972 Commits

Author SHA1 Message Date
Noah
1fff67db2c Correct float rounding algorithm 2021-03-25 08:06:58 -05:00
Noah
5063627aad Fix float.__round__ panic, use new bigint methods 2021-03-25 08:06:58 -05:00
Noah
25ecd7c38b Upgrade dependencies 2021-03-25 08:06:56 -05:00
Noah
163cd19533 Merge pull request #2519 from TheOnlyError/2406-parse-multiple-lines-REPL
2406 parse multiple lines REPL
2021-03-25 08:04:07 -05:00
Unknown
3809e49ef0 Remove readline test 2021-03-25 10:41:35 +01: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
Gijs
92e63f49a1 Format readline 2021-03-19 12:01:13 +01:00
Gijs
bd772bf143 Add ignore to test 2021-03-19 11:57:11 +01:00
Gijs
a9061bb382 Fix super import 2021-03-19 11:45:40 +01:00
Dean Li
d6d689dc1f os.open: make make_path return Cow 2021-03-16 20:15:26 +08:00
Eric van der Toorn
29a69b8958 update rustyline 2021-03-16 12:45:06 +01:00
Gijs
3087d48f09 Fix multiline parsing into the REPL 2021-03-16 11:33:24 +01:00
Noah
70b3aa871e Fix zlib decompress for longer streams 2021-03-14 12:49:59 -05:00
Noah
fd87c238fc Don't panic when can't __del__ object 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
Noah
b995a5ff85 Merge pull request #2476 from pca006132/master
Optimize method call performance
2021-03-07 19:19:28 -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
9ef0d8bf58 Merge pull request #2485 from RustPython/misc-aiohttp
Misc fixes to get aiohttp working
2021-02-27 15:06:27 -06:00
Padraic Fanning
3ce476c13d Add optional arguments to tuple.index()
More or less directly translated from the CPython implementation.
2021-02-25 16:12:44 -05:00
Padraic Fanning
d32e5501be Add optional arguments to list.index()
More or less directly translated from the CPython implementation.
2021-02-25 15:53:50 -05: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
a46fb496aa tp_iternext for coroutine_wrapper 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
7a84e2b6c9 Respect module.__getattr__ 2021-02-20 21:04:30 -06:00
Noah
58db1752b0 Fix ImportFrom implementation 2021-02-20 21:04:30 -06:00
Noah
86f907ec0d Fix SetupAsyncWith stack level handling 2021-02-20 21:04:30 -06:00
Noah
e6d9af43ca Miscellaneous fixes for aiohttp 2021-02-20 21:04:29 -06:00
Noah
fdfdfbce01 Merge pull request #2473 from rickygao/itertools-support
Follow the latest `itertools` module
2021-02-20 15:58:24 -06:00
Noah
ed4fcf519a Don't use atomics as much for lasti 2021-02-20 12:51:52 -06:00
Jeong YunWon
4b67a39ab8 Merge pull request #2468 from RustPython/coolreader18/fix-vm-exc-stack
Rework the vm exception stack to handle errors better
2021-02-18 16:49:13 +09:00
pca006132
dbe7203225 Reserve space for function args
A lot of function calls are method calls, this can avoid later
reallocation when pushing self argument.
2021-02-17 13:37:25 +08:00
pca006132
de5e94ec56 Removed unnecessary clones in method call 2021-02-17 13:37:25 +08:00
rickygao
83ff1fb1d8 add itertools.pairwise and fix typos 2021-02-17 12:56:19 +08:00
Noah
afefd163a6 Merge pull request #2438 from RustPython/coolreader18/compile_call-classdef
Handle splat args in bases/kwargs for __build_class__
2021-02-16 17:57:26 -06:00
rickygao
496eb8922b fix style 2021-02-16 14:45:42 +08:00
rickygao
c0e8b8d8bc follow the latest signature itertools.accumulate(iterable[, func, *, initial=None]) 2021-02-16 14:37:06 +08:00
Noah
db282446f0 Unskip/fix tests in test_subclassinit 2021-02-15 21:39:43 -06:00
Noah
0bdc4bc8d8 Accept kwargs in type.__prepare__ 2021-02-15 21:39:43 -06:00
Noah
b191c68b9c Pass kwargs to __prepare__ 2021-02-15 21:39:43 -06:00