Noah
|
0ab451c519
|
Rework the vm exception stack to handle errors better
|
2021-02-15 17:44:48 -06:00 |
|
Noah
|
36f525732e
|
Use the which crate to figure out sys.executable
|
2021-01-29 00:46:17 -06:00 |
|
Noah
|
59794cdfd7
|
Change site-packages paths
|
2021-01-27 15:20:52 -06:00 |
|
Noah
|
e2da816fa4
|
Try setting utf8_mode=1
|
2021-01-23 14:24:12 -06:00 |
|
Noah
|
2a427728a6
|
Use a custom vtable for PyObjectRef
|
2020-11-21 00:33:05 -06:00 |
|
Noah
|
9214f416a4
|
Use a more generic PyRefExact
|
2020-11-14 21:28:37 -06:00 |
|
Noah
|
b30ca99a09
|
Implement string interning
|
2020-11-08 21:35:04 -06:00 |
|
Noah
|
916bb4cf1c
|
Fix some other tests
|
2020-11-06 17:37:52 -06:00 |
|
Noah
|
9105c44bc1
|
Add more winreg functions
|
2020-11-02 12:42:43 -06:00 |
|
Jeong YunWon
|
8aea12b8c9
|
Fix unused variables warnings
|
2020-11-03 00:28:19 +09:00 |
|
Jeong YunWon
|
d562b02085
|
Expose sys module constants in rust level
|
2020-10-29 14:47:31 +09:00 |
|
Árni Dagur
|
ab444d0a3e
|
Correct value of sys.float_info.min
|
2020-10-22 18:30:51 +00:00 |
|
Jeong YunWon
|
0c505f9893
|
sys.windowsversion is now static type, no need to be owned somewhere
|
2020-10-20 02:29:35 +09:00 |
|
Jeong YunWon
|
57bf7afdd9
|
every PyStructSequence is StaticType
|
2020-10-20 02:29:33 +09:00 |
|
Jeong YunWon
|
19ed4f85e7
|
clean up vm::builtins
|
2020-10-13 15:42:11 +09:00 |
|
Jeong YunWon
|
9e6dfca9e9
|
Fix build with new builtins path
|
2020-10-11 21:16:16 +09:00 |
|
Jeong YunWon
|
4da1b62c18
|
PyFuncArgs -> FuncArgs
which does not represent a single python object
|
2020-10-11 09:38:07 +09:00 |
|
Jeong YunWon
|
59db19d1ea
|
PyClass -> PyType
|
2020-09-26 07:32:38 +09:00 |
|
Jeong YunWon
|
f81ad04ce3
|
PyString -> PyStr
|
2020-09-26 00:20:02 +09:00 |
|
Noah
|
ca5f2da9e9
|
Make more builtin functions be named
|
2020-09-21 10:32:25 -05:00 |
|
Noah
|
60a523e411
|
Implement a bunch of sys.flags kinda stuff
|
2020-09-19 00:20:49 -05: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 |
|
Noah
|
ee2dff68b3
|
Implement atexit functionality
|
2020-09-18 12:00:24 -05:00 |
|
Jeong YunWon
|
1a91adc865
|
PyObjectRc
|
2020-09-14 09:40:52 +09:00 |
|
Noah
|
619f1a1de9
|
Make PyStructSequence a derive macro
|
2020-08-30 15:46:04 -05:00 |
|
Noah
|
79c0efc491
|
Make class.slots completely immutable
|
2020-08-30 15:46:04 -05:00 |
|
Jeong YunWon
|
bd3d4cfdb2
|
earlier returning for error
|
2020-08-23 06:54:25 +09:00 |
|
Jeong YunWon
|
74253e2c56
|
Remove redundant clone
|
2020-08-19 10:00:48 +09:00 |
|
Jeong YunWon
|
3b1bdc5c68
|
force pystruct_sequence to have only single module while pymodule overwrite module only when it doesn't exist
|
2020-08-11 06:16:37 +09:00 |
|
Jeong YunWon
|
e253095f75
|
new_str allows &str and &String
|
2020-08-10 02:16:50 +09:00 |
|
Jeong YunWon
|
7b6ab8da72
|
Replace vm.new_{int,str,bool} with vm.new_pyobj
|
2020-08-10 02:16:29 +09:00 |
|
Jeong YunWon
|
61455ce261
|
Separate IntoPyObject and IntoPyResult
|
2020-08-04 22:59:34 +09:00 |
|
Noah
|
4bd1153b24
|
Add/fix a bunch of sysmodule attributes
|
2020-08-02 20:59:36 -05:00 |
|
Noah
|
ba8c0d9a82
|
Use sys.excepthook when exceptions bubble to the top level
|
2020-08-02 12:23:12 -05:00 |
|
Bolun Thompson
|
5b26281a3d
|
Fixed bug where sys.executable may follow symlinks
|
2020-07-26 20:48:40 -07:00 |
|
Jeong YunWon
|
1fd87879aa
|
Merge pull request #2002 from BasixKOR/sys-getwindowsversion
Implement `sys.getwindowsversion`
|
2020-07-26 22:12:40 +09:00 |
|
Jeong YunWon
|
75b91087cd
|
Merge pull request #2018 from RustPython/coolreader18/common-crate
Move a few non-python specific functions into a 'common' crate, make threading optional
|
2020-07-26 22:03:59 +09:00 |
|
Basix
|
240a31e112
|
Use module parameter for WindowsVersion
|
2020-07-26 17:11:20 +09:00 |
|
Basix
|
ac57b5225d
|
Rename getwindowsversion_type
|
2020-07-26 17:07:05 +09:00 |
|
Basix
|
0cc085b3a5
|
Fix code style
|
2020-07-26 17:06:25 +09:00 |
|
Basix
|
d4d4f7a398
|
Add getwindowsversion in sys module
Compatibility note:
The return type of this function has a different name from CPython.
|
2020-07-26 17:06:24 +09:00 |
|
Basix
|
9bafa29969
|
Fix handling of null-terminated string
|
2020-07-26 17:06:24 +09:00 |
|
Basix
|
ab926d17f4
|
Implement sys.getwindowsversion
|
2020-07-26 17:06:24 +09:00 |
|
Bolun Thompson
|
84aa0e094a
|
avoid unnecessary cloning
|
2020-07-25 14:33:41 -07:00 |
|
Noah
|
16ff022014
|
Add the rustpython_common::{cell, rc} modules
|
2020-07-25 15:22:03 -04:00 |
|
Noah
|
0251f3e9a2
|
Move pyhash and some float ops to rustpython-common
|
2020-07-25 15:22:00 -04:00 |
|
Bolun Thompson
|
1098efa00a
|
Fixed bug where sys.executable would return a relative path instead of an absolute path
|
2020-07-25 11:35:19 -07:00 |
|
Bolun Thompson
|
447ddd1b09
|
Added newline for spacing
Accidentally removed newline for spacing in documentation; re added it.
|
2020-07-25 00:25:08 +00:00 |
|
Bolun Thompson
|
6a713a5b8b
|
Added _base_executable variable to sys module
|
2020-07-23 16:11:38 -07:00 |
|