Commit Graph

378 Commits

Author SHA1 Message Date
Dean Li
68b9d38fc6 os: add device_encoding to wasi
Update `libc` to 0.2.119 to include [libc PR#2683](https://github.com/rust-lang/libc/pull/2683) which added support `device_encoding` on wasi.
2022-02-24 20:41:31 +08:00
Noa
8c9fb2c775 Fix unsatisfied times import on wasi 2022-01-26 13:01:35 -06:00
Steve Shi
908b239572 Refactor and new sequence traits, generic sequence operation (#3445)
* refactor sequence generic mutable sequence item equal op

* sequence generic for pydeque

* replace usize::MAX with Optioned

* sequence op for array

* fix overflow error instead memory error for  index overflow

* fixup

* optimize reserve vec for imul
2021-11-22 09:21:23 +02:00
Noa
af7ec416f9 Prevent edge case race condition, hopefully 2021-11-15 16:08:47 -06:00
Noa
e42a3ca48e Big overhaul part 1 - replace PyRc with manual RefCount + WeakRefList 2021-11-15 16:08:45 -06:00
David Carlier
d6e89301a5 netbsd/openbsd build fix 2021-11-07 12:48:34 +00:00
Noa
f01a7b17c4 Upgrade nix 2021-11-03 13:28:41 -05:00
Noa
358ce09b5c Run cargo upgrade 2021-10-30 19:42:35 -05:00
Noa
6ac95d2e7b Run cargo update 2021-10-30 19:33:30 -05:00
Jeong YunWon
2dea5f2039 use ResultLike for PyIterReturn 2021-10-26 23:10:10 +09:00
Jeong YunWon
1047cb573d Update result-like to 0.4 2021-10-23 02:49:59 +09:00
Noa
27540e1d35 Add unparse feature to ast 2021-10-17 21:55:27 -05:00
Noa
65fa12a55a Fix test failures 2021-09-30 18:33:51 -05:00
Jeong YunWon
fb25a15f2c split rustpython-stdlib crate 2021-10-01 01:54:04 +09:00
eldpswp99
76c8f33a6f remove precommit 2021-09-28 00:27:44 +09:00
Noa
0bb0946a5e Merge pull request #3118 from RustPython/more-codecs
Implement ascii codec in Rust
2021-09-23 12:48:04 -05:00
Jeong YunWon
874ed5a78d Merge pull request #3098 from youknowone/doc-sync
CPython docs database for module items
2021-09-23 11:39:37 +09:00
Noa
20b86b2060 Implement ascii codec in Rust 2021-09-22 16:35:50 -05:00
Jeong YunWon
225e7427a7 Merge pull request #3092 from youknowone/str-safe
Fix PyStr operations to be safe
2021-09-23 00:26:28 +09:00
Jeong YunWon
c2b4755af4 CPython docs database for module items 2021-09-22 04:25:41 +09:00
Jeong YunWon
2952f6e7c6 extract wchar_t definition to rustpython-common 2021-09-22 03:30:41 +09:00
Jeong YunWon
795738d32b ascii! macro 2021-09-21 18:14:42 +09:00
Jeong YunWon
60fddd1553 little bit better error message for signature error 2021-09-16 03:29:33 +09:00
Myunghoon Park
8c91269977 add precommit which runs fmt 2021-09-12 17:45:59 +09:00
Noa
61749bf4cf Remove unnecessary redox patches 2021-09-11 15:48:22 -05:00
Noa
34b91e7cad Update rustyline to 9.0 2021-09-10 10:28:23 -05:00
Padraic Fanning
f833ba6ed3 Update num_bigint to 0.4.2
Fixes a compilation error with the latest nightlies.
2021-09-03 18:53:23 -04:00
Jeong YunWon
da166186de derive __text_signature__ from definition 2021-08-22 17:37:42 +09:00
sobolevn
10fe2d4763 Attempt to fix the failing CI 2021-08-17 01:32:25 +03:00
Noah
94eb264c92 Fix rustyline on redox 2021-08-11 18:45:57 -05:00
Noah
a32ee555cf Run cargo update 2021-07-31 18:44:40 -05:00
Noah
4de16f6955 Remove derive_more dep 2021-07-31 10:49:39 -05:00
Noah
b05c0e27f6 Upgrade dependencies for redox 2021-07-31 10:18:00 -05:00
Yossi Konstantinovsky
d382009a5f add initial pyexpat implementation 2021-07-20 14:36:02 +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
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
Noah
d1a4812d3f Implement _codecs.utf_8_decode in rust 2021-05-20 20:36:04 -05:00
Noah
ab3537f9c9 Make PyStr.hash a AtomicI64 2021-05-20 18:41:13 -05:00
Jeong YunWon
53e2f5f48a module _scproxy 2021-05-13 03:03:21 +09:00
Noah
6b55c8d44f Fix(?) windows errnos 2021-05-04 11:31:09 -05:00
Noah
d969299de5 Always have fds represent the C RT's fds, even on windows 2021-04-27 08:15:12 -05:00
Noah
8ae26e545f Don't depend on num-iter 2021-04-25 18:03:29 -05:00
Noah
325007f6f3 Don't include regex in the binary, remove regex_crate module 2021-04-22 08:31:27 -05:00
Noah
9aab312dae Remove serde_json python module 2021-04-22 08:08:19 -05:00
Noah
696aa99b80 Apply review comments 2021-04-21 20:44:18 -05:00
Kangzhi Shi
7ab4e9573c fix sre zerowidth search 2021-04-20 10:21:16 +02:00
Noah
075b184b56 Upgrade sre-engine 2021-04-16 10:56:14 -05:00
Noah
763c18d8aa Merge pull request #2544 from RustPython/coolreader18/misc-fixes
Misc fixes related to IPython
2021-04-14 15:14:54 -05:00
Noah
f892b06c3e Switch to sre-engine from crates.io 2021-04-13 10:40:15 -05:00
Noah
3db00be5f3 Add termios module 2021-04-11 17:38:44 -05:00