Commit Graph

1291 Commits

Author SHA1 Message Date
Noah
ee124eb85d Make ReprGuard vm-local 2020-08-11 11:07:51 -05:00
Jeong YunWon
e821cf90dd os.execv reuse first arg for validation 2020-08-11 02:34:51 +09:00
Jeong YunWon
8b1abf64c3 Merge pull request #2096 from youknowone/proc-dupcheck
Enhance pyclass/pymodule
2020-08-11 02:05:40 +09:00
Jeong YunWon
2144644e56 pymodule select 2020-08-11 01:32:38 +09:00
Jeong YunWon
c7b156026c pymodule _posixsubprocess 2020-08-11 01:32:38 +09:00
Jeong YunWon
2f7c4b4d9b pymodule _multiprocessing 2020-08-11 01:32:37 +09:00
Jeong YunWon
b675556502 Merge pull request #2085 from RustPython/coolreader18/no-unimplemented-os
Don't panic when a os function isn't supported on a platform
2020-08-11 01:17:17 +09:00
Jeong YunWon
dcf80e606d pymodule marshal 2020-08-11 01:13:47 +09:00
Jeong YunWon
e7848b1eec pymodule faulthandler 2020-08-11 01:13:47 +09:00
Jeong YunWon
db45e07bce _functools into pymodule 2020-08-11 01:11:10 +09:00
Jeong YunWon
287aaacb81 pymodule keyword 2020-08-11 01:11:09 +09:00
Jeong YunWon
c93ea3df34 pymodule _json 2020-08-11 01:10:18 +09:00
Jeong YunWon
be39c8cd93 pymodule dis 2020-08-11 01:06:38 +09:00
Jeong YunWon
6f32c24f45 no more extend_module_platform_specific in os.rs 2020-08-11 01:06:38 +09:00
Jeong YunWon
750554c2f8 os attributes with pyattr 2020-08-11 01:06:38 +09:00
Jeong YunWon
6b5b99b404 new module attribute pyattr for evaluated attributes 2020-08-11 01:06:38 +09:00
Noah
bbbe3fded7 Don't panic when a os function isn't supported on a platform 2020-08-10 10:31:11 -05:00
Jeong YunWon
e253095f75 new_str allows &str and &String 2020-08-10 02:16:50 +09:00
Jeong YunWon
7b6ab8da72 Replace vm.new_{int,str,bool} with vm.new_pyobj 2020-08-10 02:16:29 +09:00
Jeong YunWon
4506e21af9 Merge pull request #2092 from youknowone/small-fix
Small edits
2020-08-10 01:53:41 +09:00
Jeong YunWon
921310a59b PyMatch::captures use Range<usize> instead of (usize, usize) 2020-08-10 00:15:25 +09:00
Basix
134dd74b8b Add OpenKeyEx
https://docs.python.org/3.8/library/winreg.html#winreg.OpenKeyEx
2020-08-09 22:48:43 +09:00
Jeong YunWon
4a01bf4dfd Merge pull request #2088 from BasixKOR/win-execv
Implement os.execv on Windows
2020-08-09 20:44:12 +09:00
Basix
0c9e365bdc Apply suggestions from code review 2020-08-09 18:39:25 +09:00
Basix
f5d56371f1 Use errno_err on Windows waitpid 2020-08-09 17:58:26 +09:00
Basix
5a7169cab6 Enable supress_iph on calling _wexecv 2020-08-09 17:55:52 +09:00
Basix
e552aeeb60 Fix errors on creating arguments for _wexecv 2020-08-09 17:55:27 +09:00
Basix
93337b9aaa Use errno_err for Windows execv 2020-08-09 17:24:56 +09:00
Basix
fab3617fb7 Implement os.execv on Windows 2020-08-09 16:28:03 +09:00
Jeong YunWon
a846338395 BorrowValue for PyTuple 2020-08-09 14:55:09 +09:00
Jeong YunWon
ab37e455f3 BorrowValue for PyString 2020-08-09 14:14:55 +09:00
Jeong YunWon
a77e78d3e1 BorrowValue for bytes 2020-08-09 13:44:32 +09:00
Jeong YunWon
7a8045fea1 BorrowValue for PyInt and PyList 2020-08-09 13:44:31 +09:00
Ben Lewis
3c5cd0d621 Code review changes. 2020-08-08 16:27:49 +12:00
Ben Lewis
386b899d82 Change error messages to match CPython's. 2020-08-08 12:52:16 +12:00
Ben Lewis
ae8d64fdd0 Fix several struct module tests. 2020-08-08 10:49:46 +12:00
Ben Lewis
7129e76d62 Implement iter_unpack 2020-08-08 08:50:40 +12:00
Ben Lewis
dc994e3c6f Accept array as byte like/buffer. 2020-08-08 08:50:40 +12:00
Ben Lewis
1fbeb80899 Implement pack_into/unpack_from in the struct module. 2020-08-08 08:50:40 +12:00
Jeong YunWon
6edc82c192 new_bigint for &BigInt 2020-08-06 20:19:13 +09:00
Jeong YunWon
3f6ebd3385 Use From::from for PyValues instead of new 2020-08-06 20:18:56 +09:00
Jeong YunWon
9f8e2af123 impl IntoPyException for FormatParseError 2020-08-05 23:15:35 +09:00
Jeong YunWon
ee90f7cfbd IntoPyException 2020-08-05 16:45:06 +09:00
Jeong YunWon
276180e4c3 Fix broken build 2020-08-05 15:45:17 +09:00
Noah
c1941d6ec2 Merge pull request #2070 from RustPython/coolreader18/fix-wasi
Fix os module on wasi
2020-08-05 01:37:26 -05:00
Jeong YunWon
556f7d01b1 Merge pull request #2064 from youknowone/buffered-io
BufferedIO OptionalSize, truncate and readline
2020-08-05 15:32:19 +09:00
Noah
477c968455 Call the _os module posix on minor platforms 2020-08-04 22:19:43 -05:00
Noah
a995f973ea Fix os module on wasi 2020-08-04 14:07:58 -05:00
Jeong YunWon
61455ce261 Separate IntoPyObject and IntoPyResult 2020-08-04 22:59:34 +09:00
Jeong YunWon
9646bca3cc Remove byte_count 2020-08-04 21:10:37 +09:00