Commit Graph

256 Commits

Author SHA1 Message Date
Jeong YunWon
9377134161 add #[non_exhaustive] 2022-01-22 20:22:58 +09:00
Kangzhi Shi
ca4e8f50e8 refactor ItemProtocol -> Object Protocol 2021-11-27 13:00:37 +02:00
Noa
e42a3ca48e Big overhaul part 1 - replace PyRc with manual RefCount + WeakRefList 2021-11-15 16:08:45 -06:00
Noa
a3723462ce Don't create an intermediate map for rustpython_stdlib::stdlib_inits 2021-11-01 22:37:32 -05:00
jfh
a3771518de Fix warnings for wasi check. 2021-10-27 21:06:48 +03:00
Moreal
bc05b98ca6 Relocate vm.to_repr to object.repr 2021-10-23 21:16:28 +09:00
Noa
09e9ea91e7 TryFrom, TryInto, FromIterator are in prelude now 2021-10-21 17:04:19 -05:00
Jeong YunWon
d4feb2a6c5 incref -> to_owned 2021-10-21 17:29:34 +09:00
Noa
8dd18d97be PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T> 2021-10-21 16:49:01 +09:00
Aratrik
fdd1baec65 Relocate vm.to_str to obj.str 2021-10-20 10:28:24 +05:30
jfh
606e33fe4e Better information for install pip if ssl is disabled. 2021-10-18 15:26:05 +03:00
jfh
7bc10da154 Relocate vm.get_attribute to obj.get_attr. 2021-10-17 10:30:21 +03:00
Jeong YunWon
256de1eb46 Move free functions in vm::exceptions to vm methods 2021-10-13 05:53:43 +09:00
Jeong YunWon
a42d547a3f new_{utf8_str, ascii_literal} -> new_str again 2021-10-11 21:28:14 +09:00
Jeong YunWon
4fb1cdb316 PyObjectWrap 2021-10-08 01:56:00 +09:00
Noa
5b648cc3ba Fix wasi 2 2021-10-05 16:43:01 -05:00
Noa
57305870fa Merge pull request #3178 from RustPython/wasi-fixes
Fixes for wasi
2021-10-05 16:21:17 -05:00
Noa
65fa12a55a Fix test failures 2021-09-30 18:33:51 -05:00
Noa
1e9b4e7fd5 Fixes for wasi 2021-09-30 17:40:54 -05:00
Noa
9743322aa2 Allow running packages passed to command line 2021-09-30 15:59:14 -05:00
Jeong YunWon
fb25a15f2c split rustpython-stdlib crate 2021-10-01 01:54:04 +09:00
Jeong YunWon
fb4581bd45 vm::sysmodule -> vm::stdlib::sys 2021-09-30 02:19:58 +09:00
Jeong YunWon
c3f46c773e Expose exception types under vm::builtins 2021-09-30 01:12:45 +09:00
Moreal
d7f5b62dca Sync module doc with database 2021-09-26 03:52:46 +09:00
Jeong YunWon
ffef73c1d7 split Arg{Callble,Iterable} from pyobject.rs 2021-09-22 21:01:44 +09:00
Jeong YunWon
a5309a7888 Rename Py{Callable, Iterable} to Arg{..}
which were not a python object but just argument helper
2021-09-22 20:58:26 +09:00
Jeong YunWon
48dc5c96b6 PyStrKind 2021-09-16 03:35:44 +09:00
jfh
f889add815 Fix panic (debug), no indend (release) in REPL. 2021-08-24 08:39:55 +03:00
Lee Dogeon
eea1945469 Refactor Option<T> handling
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
2021-08-10 19:14:25 +09:00
Moreal
5b5da3c45d Add missing __annotations__ variable into module 2021-08-10 02:43:33 +09:00
Jeong YunWon
ff4efd0f60 Fix unnessessary borrow 2021-07-30 02:32:16 +09:00
Noah
3d9812e748 Remove remaining borrow_value() uses 2021-05-20 10:30:42 -05:00
Noah
99104faaf7 Re-export pyobject::* from the root of the crate 2021-05-20 10:24:07 -05:00
Noah
088ea8af12 Add --install-pip cli option, tidy up src/lib.rs 2021-04-14 15:16:45 -05:00
Noah
89ef71a83a Fix tab completion for classes 2021-04-11 17:38:44 -05:00
Jeong YunWon
843895c04d Merge pull request #2531 from RustPython/clippy-1.51
Fix clippy warnings for 1.51
2021-03-28 02:36:20 +09:00
Noah
76f8ed5299 Fix clippy warnings for 1.51 2021-03-26 17:54:22 -05:00
Noah
25ecd7c38b Upgrade dependencies 2021-03-25 08:06:56 -05:00
Eric van der Toorn
29a69b8958 update rustyline 2021-03-16 12:45:06 +01:00
fanninpm
cc6baeddd6 Allow clippy::unnecessary_wraps lint, and rename "to_js" to "into_js" (#2452)
* Allow clippy::unnecessary_wraps lint

* Change PyResultExt to_js signature

* Change "to_js" to "into_js"

* Refactor "to_js" to "into_js"

* Continue refactoring "to_js" to "into_js"

* Move clippy::unnecessary_wraps to lib.rs

* Add allowed lint to jit/lib.rs

* Add allowed lint to vm/src/lib.rs
2021-02-13 19:07:07 -06:00
Noah
942b8afbe1 Add enumerate kwargs, stat_result unnamed fields, -u flag 2021-01-29 00:46:17 -06:00
Noah
be40a5d7b9 Fix clippy lints for Rust 1.49 2021-01-02 19:30:57 -06:00
Noah
3280a1655a Optimize the size of Instruction 2020-12-14 14:25:19 -06:00
Noah
7c58f4a0c8 Fast locals part 3 2020-12-05 16:36:35 -06:00
Noah
92b8e59158 Fast locals part 2 2020-12-05 16:36:00 -06:00
Noah
6dc93c5e5a Add doc comments 2020-12-01 16:03:52 -06:00
Noah
95c1392d65 Re-add main.rs using the rustpython lib 2020-12-01 15:06:02 -06:00
Noah
b3090040f0 Move main.rs to lib.rs 2020-12-01 15:05:13 -06:00
Noah
2f232ecbe3 Implement string interning for variable names 2020-11-09 15:51:57 -06:00
Noah
4528f17210 compiler/porcelain wrapper 2020-11-07 15:43:23 -06:00