Commit Graph

27 Commits

Author SHA1 Message Date
Aratrik
fdd1baec65 Relocate vm.to_str to obj.str 2021-10-20 10:28:24 +05:30
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
c3f46c773e Expose exception types under vm::builtins 2021-09-30 01:12:45 +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
76f8ed5299 Fix clippy warnings for 1.51 2021-03-26 17:54:22 -05:00
Noah
92b8e59158 Fast locals part 2 2020-12-05 16:36:00 -06:00
Noah
b3851c8eb8 Split the ast from the parser, remove compiler dep on parser 2020-11-07 15:43:23 -06:00
Jeong YunWon
19ed4f85e7 clean up vm::builtins 2020-10-13 15:42:11 +09:00
Jeong YunWon
ca9326f95d expose bulitins items on builtins module and hide submodules 2020-10-12 11:43:24 +09:00
Jeong YunWon
9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +09:00
Jeong YunWon
3cd0a1118d Fix nightly clippy 2020-10-01 07:08:55 +09:00
Jeong YunWon
ab37e455f3 BorrowValue for PyString 2020-08-09 14:14:55 +09:00
Noah
ba8c0d9a82 Use sys.excepthook when exceptions bubble to the top level 2020-08-02 12:23:12 -05:00
HyeockJinKim
cdd98135ee EOF after \\ raise EOF Error
Return EOF Error to get the next line after` \\ `in the shell.

Closes #1928
2020-05-16 09:45:44 +09:00
Noah
a34951dc1b Fix clippy and unittest error 2020-05-06 21:33:25 -05:00
Noah
0fef85ad61 Implement sys.displayhook 2020-05-05 12:22:19 -05:00
Noah
126f41e003 Make rustpython -i script.py work like it does in CPython 2020-03-27 15:24:08 -05:00
Noah
645314b215 Move readline.rs into the vm crate 2020-02-29 12:02:36 -06:00
Jeong YunWon
1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
coolreader18
777542f7ec Directly instantiate exceptions in the vm.new_*_error functions 2019-12-28 01:31:24 -06:00
Noah
97c8d11092 Make PyResult<T> = Result<T, PyBaseExceptionRef> 2019-12-27 11:22:52 -06:00
Noah
cd726a2818 Cleanup exceptions a bit 2019-12-27 11:17:26 -06:00
coolreader18
1edf7c85aa Cleanup some stuff related to the repl 2019-10-14 20:20:13 +00:00
coolreader18
e7a6b79023 Allow indenting by pressing tab 2019-10-08 21:32:02 -05:00
coolreader18
2220ed7e81 Abstract over the readline implementation 2019-10-08 21:32:02 -05:00