Commit Graph

4927 Commits

Author SHA1 Message Date
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
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
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
boris
ca9b8bad85 format namedtuples with = instead of : 2021-02-10 16:40:55 -05:00
Noah
f38d8af12b Fix __reduce_ex__ and unskip tests 2021-02-08 12:36:54 -06:00
Noah
561f4ee779 Allow tuple structs for derive(FromArgs) 2021-02-08 12:36:54 -06:00
Noah
ce8b5eed90 Enable dir_fd for utime, unskip a bunch of tests 2021-02-08 12:36:54 -06:00
Noah
9c6eea6aa0 Fix os.utime to be able to take floats 2021-02-08 12:36:54 -06:00
Noah
7809edd399 Fix non-threading callback 2021-02-07 19:39:36 -06:00
Noah
4a26d13481 Fix do_handshake method 2021-02-07 19:39:36 -06:00
Noah
781f46a826 Add more ssl methods 2021-02-07 19:39:36 -06:00
Noah
2e831f5daa Store OSError errno in the args tuple 2021-02-07 19:39:36 -06:00
Noah
aa238de4a9 Support newlines in the middle of base64 2021-02-07 19:39:36 -06:00
Danilo Bargen
a406bdd2dc Implement os.getlogin 2021-02-06 13:41:54 +01:00
Noah
6d371cea8a Merge pull request #2409 from RustPython/coolreader18/fix-http
Fix BufferedReader over a SocketIO to properly read the right amount
2021-02-03 11:29:01 -06:00
Noah
160505d0cf Use helper type for deadlines 2021-02-03 10:54:12 -06:00
boris
e7105643ec Fix _random.Random signature 2021-02-03 01:14:40 -05:00
boris
8acb7453dc Fix binascii.hexlify 2021-01-31 19:13:55 -05:00
Noah
235c384f49 Remove py_io::write_all, fix windows 2021-01-29 11:47:09 -06:00
Noah
d6eeed9770 Yeah sure lets just reimplement _all_ the timeout code 2021-01-29 11:47:09 -06:00
Noah
f613995198 zlib gzip wbits 2021-01-29 11:47:07 -06:00
Noah
9e5716124a Don't panic on invalid wbits 2021-01-29 11:45:29 -06:00
Noah
ca912fcf27 Fix BufferedReader over a SocketIO to properly read the right amount 2021-01-29 11:45:29 -06:00
Noah
6c30bc10bc Extract the sre interpreter into a separate repo 2021-01-29 10:18:20 -06:00
Noah
1976740d3c Merge pull request #2416 from RustPython/coolreader18/misc-os
DirEntry as os.PathLike, st_xtime_ns
2021-01-29 10:17:38 -06:00
Noah
da6332475b Merge pull request #2403 from RustPython/coolreader18/bincode-libmap
Serialize entire frozen hashmap to bytes
2021-01-29 02:18:13 -06:00
Noah
58503cb0fa Serialize entire frozen hashmap to bytes 2021-01-29 00:46:51 -06:00
Noah
942b8afbe1 Add enumerate kwargs, stat_result unnamed fields, -u flag 2021-01-29 00:46:17 -06:00
Noah
36f525732e Use the which crate to figure out sys.executable 2021-01-29 00:46:17 -06:00
Noah
fbbf24272f EnvironmentError = OSError, fix __radd__ str 2021-01-29 00:46:17 -06:00
Noah
76b6abb507 DirEntry as os.PathLike, st_xtime_ns 2021-01-29 00:46:16 -06:00
Jeong YunWon
dd267b5ff2 Merge pull request #2415 from RustPython/coolreader18/csv-writer
Add csv.writer()
2021-01-29 14:18:42 +09:00
Jeong YunWon
18a27ea965 Merge pull request #2417 from RustPython/update-python-version
Declare ourselves as Python 3.9
2021-01-29 14:15:32 +09:00
Jeong YunWon
bd9ab67488 Merge pull request #2420 from RustPython/coolreader18/empty-map-cformat
Don't error on a non-dict map for cformat
2021-01-29 14:11:50 +09:00