sisungo
c13806d384
Change os.rs to build on musl libc
2021-07-09 20:14:29 +08:00
Jeong YunWon
95d2f68cbf
Merge pull request #2705 from deantvv/os-getgroups
...
os: Implement getgroups
2021-07-08 00:21:27 +09:00
Jeong YunWon
0aa05f071a
Merge pull request #2707 from deantvv/os-pathconf
...
os: Implement (f)pathconf
2021-07-07 23:40:09 +09:00
Jeong YunWon
fff68dca53
Merge pull request #2711 from DimitrisJim/range-fixes
...
Fix a number of range issues.
2021-07-07 23:21:18 +09:00
Jeong YunWon
2e6fea023a
Merge pull request #2713 from DimitrisJim/vars_error
...
Fix test_vars in test_builtins.
2021-07-07 23:14:57 +09:00
Jeong YunWon
96eef21ec0
Merge pull request #2714 from DimitrisJim/tuple_singleton
...
Make tuple(empty_iterable) return empty_tuple
2021-07-07 23:13:22 +09:00
jfh
8540767f58
Fix new clippy issues, Use take.
2021-06-18 21:58:27 +03:00
jfh
2e9acb3035
Make tuple() return empty_tuple
2021-06-17 12:31:24 +03:00
jfh
b6b10149b7
Fix test_vars in test_builtins.
2021-06-16 19:48:54 +03:00
jfh
63d156097c
Add new and bool for NotImplemented.
...
New simply returns the singleton. While `bool(NotImplemented)` already
returned `True`, it is added since it will need to raise a warning in
the future.
2021-06-16 12:07:48 +03:00
jfh
c1f1f1ef02
Fix a number of range issues.
2021-06-15 19:20:54 +03:00
Jeong YunWon
e0d86e8602
Merge pull request #2706 from deantvv/os-fix-test
...
Fix tests in os
2021-06-15 19:55:01 +09:00
jfh
7be043fa5a
Fix small miscalculation when reversing a range.
2021-06-14 22:31:50 +03:00
Dean Li
d044d8ab61
os: Implement (f)pathconf
...
Implement pathconf and fpathconf using libc::pathconf.
os.pathconf_names is not implemented.
2021-06-13 21:43:33 +08:00
Dean Li
62f49ed4de
os: Fix error message of fspath
2021-06-13 13:48:39 +08:00
Dean Li
88a86fdd9e
os: Implement getgroups
...
`getgroups` is already implement in rust, just wrap the function
to let it be used in python.
2021-06-13 10:39:25 +08:00
Noah
e63d2741c3
Merge pull request #2698 from RustPython/coolreader18/textio-ergonomics
...
Use a Utf8size struct to represent the {bytes,chars} pairs in textio
2021-06-11 13:30:34 -05:00
jfh
fef63c9a71
Fallback to __name__ if __qualname__ isn't available.
2021-06-09 19:46:56 +03:00
Noah
1f0e7beefe
Use a Utf8size struct to represent the {bytes,chars} pairs in textio
2021-06-08 22:48:11 -05:00
Noah
8d432dda36
Merge pull request #2689 from DimitrisJim/notimplemented_length_hint
...
Handle NotImplemented return from length_hint.
2021-06-08 18:58:09 -05:00
jfh
9f57c58dad
Handle NotImplemented in length_hint.
2021-06-09 02:08:56 +03:00
Noah
914091855f
Merge pull request #2694 from deantvv/os-openpty-fix-test
...
os: Fix openpty test
2021-06-08 09:05:00 -05:00
Dean Li
ff87ad052d
os: Fix openpty test
...
Make openpty return non-inheritable file descriptors
2021-06-08 19:09:18 +08:00
jfh
74aae0ee8c
Refactor unary ops, consolidate into vm.rs similarly to binops.
2021-06-06 17:13:47 +03:00
Noah
80496dd6db
Merge pull request #2684 from DimitrisJim/bltin-get-self
...
Add `builtin.__self__`.
2021-06-04 20:43:08 -05:00
Noah
64d67e7ade
Merge pull request #2679 from DimitrisJim/bisect_accelerator
...
Add Rust accelerator module for bisect.
2021-06-04 20:39:03 -05:00
jfh
064b4244a4
Fix arguments passed to make_funcdef.
2021-06-04 13:39:39 +03:00
jfh
2ef4d54173
Add builtin.__self__.
2021-06-03 23:18:58 +03:00
jfh
90da29f7c0
Address review comments.
2021-06-03 18:20:32 +03:00
Noah
6f0013a3a8
Add method.__self__ attribute
2021-06-02 21:17:15 -05:00
jfh
1981f240ed
Add documentation for functions.
2021-05-30 16:55:29 +03:00
jfh
95ce95c9f0
Add Rust accelerator module for bisect.
2021-05-30 00:31:23 +03:00
Noah
bd966f4590
Merge pull request #2672 from fanninpm/test-timeit
...
Add test_timeit from CPython 3.8
2021-05-26 20:03:17 -05:00
Padraic Fanning
c2bd04ad70
Refactor or_else to map_err, satisfying Clippy
2021-05-26 19:52:22 -04:00
Padraic Fanning
16d7fb07c4
Re-raise KeyError as AttributeError
2021-05-26 19:30:39 -04:00
Noah
bf0d71b05b
Merge pull request #2674 from deantvv/os-times
...
os: Implement times
2021-05-26 13:46:41 -05:00
Dean Li
fda08241a4
os: Implement times
...
Signed-off-by: Dean Li <deantvv@gmail.com >
2021-05-26 21:49:15 +08:00
Noah
d5dbe293e0
Merge pull request #2669 from deantvv/os-listdir-optional-arg
...
os: argument in listdir should be optional
2021-05-24 20:21:08 -05:00
Noah
3cd7280eec
Merge pull request #2666 from fanninpm/test-tempfile
...
Add test_tempfile from CPython 3.8
2021-05-24 20:13:55 -05:00
Dean Li
fde0431bd1
os: argument in listdir should be optional
...
From `listdir(path)` to `listdir(path='.')`
2021-05-24 18:12:58 +08:00
Padraic Fanning
74da59f790
Patch O_TEMPORARY into os.rs
2021-05-23 16:28:06 -04:00
Noah
c5f11a7ef4
Merge pull request #2586 from RustPython/coolreader18/hash-neg1-to-neg2
...
Make PyStr.hash an AtomicI64
2021-05-22 12:31:49 -05:00
Jeong YunWon
6d87351d89
Merge pull request #2665 from RustPython/coolreader18/native-utf8
...
Implement codecs.utf_8_decode in rust
2021-05-22 13:59:42 +09:00
Noah
6bdcd22ce1
Try fix test_user_similar on win32
2021-05-21 22:07:04 -05:00
Padraic Fanning
af11d44160
Fix uname-related compilation error on Windows
2021-05-21 19:08:27 -04:00
Noah
c1ae29e971
Fancy args structs for codec functions
2021-05-21 17:38:50 -05:00
Padraic Fanning
9664ff4285
Run rustfmt
2021-05-21 18:03:34 -04:00
Padraic Fanning
0aa860b204
Make uname_result universal
2021-05-21 18:00:24 -04:00
Noah
e21a447400
Fix misc codecs issues
2021-05-21 01:32:55 -05:00
Noah
d1a4812d3f
Implement _codecs.utf_8_decode in rust
2021-05-20 20:36:04 -05:00