Commit Graph

31 Commits

Author SHA1 Message Date
Adam Kelly
0ff5155af9 Rename mk_module to make_module. 2019-03-10 17:10:51 +00:00
coolreader18
f364ea5943 Fix a bunch of clippy lints 2019-03-01 18:41:45 -06:00
Adam Kelly
4dd6592aad Keep a stack of frames in the VM. 2019-02-27 10:47:33 +00:00
ricky han
0a2aa1e64b fix compile 2019-02-26 17:39:56 -05:00
Joey Hain
f10fa6db44 Remove outer RefCell from PyObjectRef 2019-02-25 21:01:37 -08:00
Ricky Han
6f85a44f7c cargo fmt 2019-02-25 16:35:19 -05:00
Ricky Han
cf400501a1 move set_item to DictProtocol 2019-02-25 16:32:50 -05:00
Adam Kelly
2c97a50e6e sys - use py_module. 2019-02-21 21:05:00 +00:00
Joey
eec76ef8e8 Don't require objtype import to use arg_check! macro 2019-02-21 08:38:02 -08:00
ZapAnton
f1654cb890 Migrated the project to the Rust 2018 edition 2019-02-14 12:02:32 +03:00
Windel Bouwman
b1e07f64be Change to more usage of VirtualMachine in anticipation of proper dictionaries. 2019-02-10 15:39:33 +01:00
veera venky
61cbb49647 Added __doc__ for sys module 2019-02-08 21:08:30 +05:30
Adam Kelly
fd344ec1e0 Remove unnecessary to_bigint().unwrap() everywhere. 2019-02-06 17:38:01 +00:00
coolreader18
e9bfea834a Format module building in a more readable way 2019-01-28 23:02:43 -06:00
coolreader18
5ecff1b37e Remove unnecessary to_string conversions 2019-01-27 21:45:21 -06:00
Windel Bouwman
0215830aaa Move set_attr and set_item to context. 2018-12-12 19:41:09 +01:00
Windel Bouwman
49f855219a Implement sys.getrefcount, sys.ps1, sys.ps2 and sys.getsizeof 2018-11-11 20:54:30 +01:00
Adam Kelly
a1b7c61fcf Implement sys._getframe() to the point where we can use it to get locals. 2018-11-11 17:54:30 +00:00
rmliddle
95d7a4d417 removed unused imports 2018-10-20 11:47:36 +11:00
rmliddle
a099361cf2 formatting changes 2018-10-20 11:44:18 +11:00
rmliddle
064765315d pass of args for clap, pop first arg 2018-10-20 10:36:49 +11:00
rmliddle
302784df51 sysmod.argv added + snippet 2018-10-16 23:02:09 +11:00
Daniel Watkins
a457153ce1 Consider imports relative to their source
Currently they are considered relative to the current working directory
of the interpreter, which is incorrect.

Fixes #83.
2018-08-25 19:45:19 -04:00
Daniel Watkins
da34b86a9c Implement PYTHONPATH
This modifies the import logic to use sys.path, and uses PYTHONPATH to
generate the initial contents of sys.path.
2018-08-24 22:55:30 -04:00
Adam Kelly
6bdf4148b5 Simplify new_list/new_tuple api. 2018-08-19 20:54:45 +01:00
Adam Kelly
9917bebb99 Remove unnecessary mutability in DictProtocol. 2018-08-15 12:58:18 +01:00
Daniel Watkins
cf7005602f Implement new list creation with elements 2018-08-04 16:23:21 -04:00
Windel Bouwman
0f4f130d08 Add early sys module 2018-08-04 10:59:13 +02:00
Windel Bouwman
000f889222 Add compile builtin 2018-07-18 14:45:53 +02:00
Windel Bouwman
de29e7fdc7 Add spiffy dir function 2018-07-18 11:40:43 +02:00
Windel Bouwman
bbc19305f8 Reduce dependencies of vm and parser crates 2018-07-18 10:22:00 +02:00