Noah
516eead348
Replace PyStr.borrow_value() with .as_str()
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
4528f17210
compiler/porcelain wrapper
2020-11-07 15:43:23 -06:00
Jeong YunWon
9e6dfca9e9
Fix build with new builtins path
2020-10-11 21:16:16 +09:00
Jeong YunWon
f81ad04ce3
PyString -> PyStr
2020-09-26 00:20:02 +09:00
Jeong YunWon
9e78ec9ef9
Fix dis.dis to prints inner constant codes like CPython
2020-09-21 06:09:55 +09:00
Jeong YunWon
b876629606
Reduce direct usage of vm.ctx.none
2020-09-19 11:00:31 +09:00
Jeong YunWon
0f7ed21eda
remove vm.get_none and clean up its use cases
2020-09-19 10:20:20 +09:00
Jeong YunWon
be39c8cd93
pymodule dis
2020-08-11 01:06:38 +09:00
Jeong YunWon
ab37e455f3
BorrowValue for PyString
2020-08-09 14:14:55 +09:00
Jeong YunWon
67b5d61d1f
Refactor DictKey
2020-08-04 02:12:56 +09:00
Bolun Thompson
33808e623c
Added support for strings to dis.dis
...
Currently, the dis module's dis function only accepts functions tp
decompile. This adds support for disassembling strings. It does this by
compiling the string, then disassembling compiled output.
2020-08-01 07:21:28 -07:00
Jeong YunWon
7d0d313aa5
&str::to_string -> &str::to_owned for variables
2020-02-05 22:55:34 +09:00
Jeong YunWon
70b63eb758
new_rustfunc -> new_function & new_method to distinguish bindable functions
2020-01-12 18:39:16 +09:00
Jeong YunWon
c1306726c4
Fix clippy warnings
2019-12-21 18:49:48 +09:00
coolreader18
bed54e035c
Add some constants to native modules
2019-11-16 22:58:51 -06:00
Adam Kelly
9ed051e3b7
Module Initialisation takes VirtualMachine rather than PyContext.
2019-04-05 09:50:31 +01:00
ben
db8e648646
Make PyFunction.code a PyCodeRef, PyGenerator.frame a FrameRef, and
...
other improvements to increase use of specific ref types.
2019-03-24 13:41:37 +13:00
coolreader18
a9051ab462
Convert all &mut VirtualMachine to &VirtualMachine
2019-03-22 01:48:14 -05:00
Adam Kelly
e66b5078a8
Introduce TryIntoRef<T> to make vm.get_attribute more usable.
2019-03-21 10:58:32 +00:00
Joey
7bfd2e6e84
Move function items out of pyobject module
2019-03-15 21:27:11 -07:00
Adam Kelly
0ff5155af9
Rename mk_module to make_module.
2019-03-10 17:10:51 +00:00
Adam Kelly
73a65a1c77
dis.rs - small refactor dis_dis.
2019-02-26 09:41:39 +00:00
Adam Kelly
79f43ad762
Add support for pulling __code__ out of a function (and a test that hits lots of instructions).
2019-02-26 09:41:39 +00:00
Adam Kelly
2c0016a171
Minimal definition of dis.dis.
2019-02-26 09:41:39 +00:00
Adam Kelly
d420c7f400
dis - use py_module.
2019-02-21 21:04:42 +00:00
Adam Kelly
5ebfd55b20
Add extremely minimal dis module.
2019-02-21 14:02:59 +00:00