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 |
|
Noah
|
58fb28a870
|
Don't use crate::pyobject:: in codecs modules
|
2021-05-20 18:45:49 -05:00 |
|
Noah
|
1b7ccdcf33
|
Skip .chars().len() when str is ascii
|
2021-05-20 18:45:03 -05:00 |
|
Noah
|
18492e6a20
|
Remove pystr::{borrow,clone}_value
|
2021-05-20 18:45:03 -05:00 |
|
Noah
|
ab3537f9c9
|
Make PyStr.hash a AtomicI64
|
2021-05-20 18:41:13 -05:00 |
|
Noah
|
fbbe4a68d2
|
Rename borrow_list to borrow_vec
|
2021-05-20 17:47:17 -05:00 |
|
Noah
|
27ee7e12bf
|
Remove BorrowValue fully
|
2021-05-20 17:23:37 -05:00 |
|
Noah
|
3d9812e748
|
Remove remaining borrow_value() uses
|
2021-05-20 10:30:42 -05:00 |
|
Noah
|
46e94b5720
|
Replace PyTuple.borrow_value() with .as_slice()
|
2021-05-20 10:29:49 -05:00 |
|
Noah
|
1eae2c8a12
|
Replace bufferish-types.borrow_value() with direct getters
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
d6e79fbbbf
|
Replace PyInt.borrow_value() with .as_bigint()
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
516eead348
|
Replace PyStr.borrow_value() with .as_str()
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
61fd3bbc1c
|
Use BorrowValue less
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
376ce87b76
|
Move Either to crate::utils
|
2021-05-20 10:29:48 -05:00 |
|
Noah
|
99104faaf7
|
Re-export pyobject::* from the root of the crate
|
2021-05-20 10:24:07 -05:00 |
|
Noah
|
3f68a23963
|
Merge pull request #2646 from RustPython/coolreader18/native-codecs
Implement _codecs (but not encoding/decoding) as a Rust module
|
2021-05-20 09:55:45 -05:00 |
|
Noah
|
8b56b127aa
|
Remove CodecRegistry.lookup_opt
|
2021-05-20 09:23:06 -05:00 |
|