Commit Graph

4958 Commits

Author SHA1 Message Date
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
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
Noah
95c79a7631 Fix refcell "deadlock" 2021-02-15 21:16:17 -06:00
Noah
73a6a49379 Merge pull request #2470 from zsilver1/math-lib-fixes
Fix `math.floor` and `math.ceil` functions to match cpython behavior
2021-02-15 21:05:30 -06:00
Noah
54e3ab0d4e Don't expose ExceptionStack 2021-02-15 19:49:05 -06:00
Zach Silver
9636996c4f Fix floor and ceil functions to match cpython behavior 2021-02-15 16:30:14 -08:00
Noah
0ab451c519 Rework the vm exception stack to handle errors better 2021-02-15 17:44:48 -06:00
pca006132
3f6df176d9 Optimize check_signals 2021-02-15 15:01:53 +08:00
Noah
820337e6c3 Merge pull request #2460 from pca006132/range-opt
Optimize builtins/range
2021-02-15 00:30:40 -06:00
pca006132
3a6d4b75dc Optimize builtins/range 2021-02-15 13:25:13 +08:00
kenkoooo
c558335089 Implement os.getpriority and os.setpriority (#2453) 2021-02-14 20:22:18 -06:00
fanninpm
cc6baeddd6 Allow clippy::unnecessary_wraps lint, and rename "to_js" to "into_js" (#2452)
* Allow clippy::unnecessary_wraps lint

* Change PyResultExt to_js signature

* Change "to_js" to "into_js"

* Refactor "to_js" to "into_js"

* Continue refactoring "to_js" to "into_js"

* Move clippy::unnecessary_wraps to lib.rs

* Add allowed lint to jit/lib.rs

* Add allowed lint to vm/src/lib.rs
2021-02-13 19:07:07 -06:00
kenkoooo
b15daec6c6 Merge branch 'master' into os_getgrouplist 2021-02-12 21:42:12 +09:00
Noah
3f36dcdaef Merge pull request #2426 from RustPython/fix-utime
Fix os.utime to be able to take floats
2021-02-11 10:16:35 -06:00
Noah
6b761e94c0 Unify/simplify os.stat 2021-02-11 08:01:22 -06:00
kenkoooo
9b79ca4a0d Implement os.getgrouplist 2021-02-11 18:04:11 +09:00