Aviv Palivoda
|
ea8e28026b
|
Simplify objmodule
|
2019-06-11 13:13:32 +03:00 |
|
Aviv Palivoda
|
e1472f2277
|
Add sys.dont_write_bytecode
|
2019-06-10 19:18:32 +03:00 |
|
Aviv Palivoda
|
10828e01fb
|
Set sys.pycache_prefix to None
|
2019-06-10 19:18:32 +03:00 |
|
Aviv Palivoda
|
5584733cda
|
Add sys.path_importer_cache
|
2019-06-10 19:18:32 +03:00 |
|
Aviv Palivoda
|
58d9d9deeb
|
Add sys.path_hooks
|
2019-06-10 19:18:32 +03:00 |
|
Aviv Palivoda
|
0d9a066712
|
Add sys.meta_path
|
2019-06-10 19:18:32 +03:00 |
|
ben
|
c0c531d550
|
Merge branch 'master' into sys_flags
# Conflicts:
# tests/snippets/sysmod.py
# vm/src/sysmodule.rs
|
2019-05-30 21:12:57 +12:00 |
|
Windel Bouwman
|
3f5bb517a5
|
Merge pull request #1001 from RustPython/coolreader18/rustpythonpath
Check RUSTPYTHONPATH as well as PYTHONPATH env variables
|
2019-05-30 09:53:05 +02:00 |
|
coolreader18
|
c78dc520ad
|
Don't clone PathBufs
|
2019-05-29 16:53:13 -05:00 |
|
coolreader18
|
11892816a7
|
Don't check env variables on wasm
|
2019-05-29 16:38:04 -05:00 |
|
Jeong YunWon
|
3675ce859a
|
Add sys.getfilesystemencoding, sys.getfilesystemencodeerrors
|
2019-05-29 21:20:55 +09:00 |
|
coolreader18
|
770f54791e
|
Fix ownership errors
|
2019-05-25 17:28:25 -05:00 |
|
coolreader18
|
017377061d
|
Check RUSTPYTHONPATH as well as PYTHONPATH env variables
|
2019-05-25 15:52:44 -05:00 |
|
ben
|
60c9d5004a
|
Add SimpleNamespace and sys.implementation
|
2019-05-19 15:01:22 +12:00 |
|
ben
|
8b657ab81e
|
Add documentation for sys.flags
|
2019-05-19 10:32:07 +12:00 |
|
ben
|
2ca96c8ae1
|
Add sys.flags by creating a pystruct_sequence macro
|
2019-05-19 10:17:21 +12:00 |
|
Jeong YunWon
|
ddf676569a
|
Add sys.builtin_module_names
|
2019-05-12 19:18:37 +09:00 |
|
Aviv Palivoda
|
152c1654d6
|
Add sys.platform
|
2019-05-11 11:43:11 +03:00 |
|
Darren Kaste
|
a8e064b1c0
|
Import TypeProtocol before use in type_check!
|
2019-04-14 17:19:44 -04:00 |
|
ben
|
d24dd170e9
|
Changes to RustPython to support importing and running unittest
|
2019-04-14 12:09:54 +12:00 |
|
Adam Kelly
|
7b2d92f495
|
Delete DictProtocol. impl ItemProtocol for PyDictRef.
|
2019-04-06 10:15:29 +01:00 |
|
Adam Kelly
|
9ed051e3b7
|
Module Initialisation takes VirtualMachine rather than PyContext.
|
2019-04-05 09:50:31 +01:00 |
|
Adam Kelly
|
c8eda3733d
|
Eliminate ctx.set_attr.
|
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
|
b0d8935731
|
Merge branch 'master' into coolreader18/immutable-vm-ref
|
2019-03-22 07:21:45 -05:00 |
|
Adam
|
e7eff34e13
|
Merge pull request #709 from RustPython/avoid_attribute_protocol
Avoid attribute protocol
|
2019-03-22 11:42:30 +00:00 |
|
Adam Kelly
|
23ee751880
|
Use vm.get_attribute to access attributes of modules.
|
2019-03-22 10:54:28 +00:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
Windel Bouwman
|
8c0419e6b4
|
Put RefCell around frames member of VirtualMachine. This allows for VirtualMachine to be immutable.
|
2019-03-20 20:29:08 +01: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 |
|
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 |
|