Commit Graph

1278 Commits

Author SHA1 Message Date
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
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
Jeong YunWon
eabbd917a7 Remove loop from BufferedIO.readline 2020-08-04 20:28:19 +09:00
Jeong YunWon
78c6b0b24b BufferedIO OptionalSize & truncate 2020-08-04 20:28:19 +09:00
Jeong YunWon
67b5d61d1f Refactor DictKey 2020-08-04 02:12:56 +09:00
Jeong YunWon
4a4a7baeb6 Merge pull request #2061 from tobark/symlink
Add target_is_directory parameter for symlink function
2020-08-03 18:27:02 +09:00
Yi Hyunjoon
3d0453d47d Allow dead TargetIsDirectory temporary 2020-08-03 17:35:56 +09:00
Jeong YunWon
7bbc729477 BufferedIO.read avoid clone 2020-08-03 02:02:31 +09:00
Noah
3d5ea1b38d Merge pull request #2060 from skinny121/zlib_decompress
Fix zlib decompression
2020-08-02 09:48:47 -05:00
Yi Hyunjoon
d9f507e4a3 Add target_is_directory parameter for symlink function 2020-08-02 17:52:37 +09:00
Jeong YunWon
2c86359051 Merge pull request #2045 from Lynskylate/feature-symtable
Add is_imported and is_annotation for symtable
2020-08-02 17:42:51 +09:00
Ben Lewis
43434d8559 Fix zlib decompress 2020-08-02 19:49:57 +12:00
lynskylate
31061b0464 Optimize code 2020-08-02 15:11:08 +08:00
Basix
43e6837ddb Rename os_chmod to chmod 2020-08-02 14:01:55 +09:00
Basix
639d21acc9 Implement os.chmod on Windows 2020-08-02 13:44:42 +09:00