Jeong YunWon
1208416b92
0.3.0 release
2023-09-06 18:49:55 +09:00
Reid00
b864e5da1f
feat: Implement _imp._frozen_module_names ( #5062 )
2023-09-03 21:33:42 +09:00
Jeong, YunWon
77939d2ca5
Update platform from CPython 3.11.5 ( #5060 )
...
* Update platform and test from CPython 3.11.5
* sys.dllhandle (=0)
* Unmark fixed test of test_sysconfig
---------
Co-authored-by: CPython Developers <>
2023-09-01 13:55:28 +09:00
Jeong, YunWon
9cf18a8bdc
feature encodings is dependency of stdlib ( #5061 )
2023-09-01 01:44:05 +09:00
Reid00
3900a086b8
update imp.py from CPython 3.11 ( #5054 )
2023-08-31 17:44:31 +09:00
Jeong, YunWon
64c66e00d6
Fix encodings related error messages to be less confusing ( #5049 )
...
* Move cwd setup to interpreter code
* rework import encodings failure message
* try import_encodings only when `path_list` is set
* std::mem::take instead of drain(..).collect()
* Add empty path_list warnings to import_encodings
* Prepend current working directory when !safe_path
Co-authored-by: fanninpm <fanninpm@miamioh.edu >
2023-08-30 21:45:36 +09:00
Jeong, YunWon
4ba2892168
Better tips for Interpreter & InterpreterConfig ( #5047 )
...
Co-authored-by: fanninpm <fanninpm@miamioh.edu >
2023-08-30 20:00:07 +09:00
Jeong, YunWon
aee68d20bb
Fix freeze-stdlib + Interpreter::without_stdlib ( #5051 )
...
* Fix pylib invalidation config
* Fix Interpreter::without_stdlib with frozen-stdlib feature
2023-08-30 19:50:20 +09:00
Junho Lee
d4be55c2ea
Add command line parameter -P ( #4611 )
...
* Add command line parameter -P
* Modify the value of safe_path to be set
---------
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
2023-08-30 19:32:27 +09:00
Jeong, YunWon
93d731cc4b
Merge pull request #5029 from LucaSforza/main
...
added __reduce__ method for itertools.permutations
2023-08-27 03:19:37 +09:00
LucaSforza
94029386ae
added __reduce__ method for itertools.permutations
2023-08-27 02:13:44 +09:00
Dan Nasman
5f6059ef73
fix formatting
2023-08-27 02:12:27 +09:00
Dan Nasman
ba8d7b541f
change conditional expression
2023-08-27 02:12:27 +09:00
Dan Nasman
b1238ab4eb
change import_encodings error message
2023-08-27 02:12:27 +09:00
Jeong, YunWon
d4d362a9ca
Update to Rust 1.72.0
2023-08-27 00:38:10 +09:00
Zanie Blue
bdb0c8f645
Add parser support for PEP 695 ( #5026 )
...
* Add generated content for PEP 695 ASDL
* Bump RustPython/Parser to 704eb40108
* Add stubs for type aliases and parameters
2023-07-20 13:54:07 +09:00
Bobby Palmer
a58ede99f2
add int_max_str_digits input from command line ( #5021 )
...
* added int_max_str_digits to settings struct
* changed vm init to use the value from settings
* added error handling and set the settings default to -1 which sets the value to 4300
2023-07-06 01:24:11 +09:00
Dan Näsman
1cdc5d3294
Add get_int_max_str_digits and set_int_max_str_digits in sys. ( #5014 )
...
---------
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com >
2023-06-17 23:46:22 +03:00
Jeong, YunWon
3d2c51962b
Update parser ( #5012 )
2023-06-18 02:38:42 +09:00
Jim Fasarakis-Hilliard
5c81649b19
Return SyntaxError with null byte input in eval. ( #5013 )
...
* Return SyntaxError with null byte input in eval.
* Special case MacOS for now, add a note for future sanity.
2023-06-17 16:58:28 +03:00
ilp-sys
8dbf7b27ef
Fix test_path_like_objects ( #4773 )
...
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com >
2023-06-13 00:10:50 +09:00
Ivan Gromov
cbaed46fb4
Implement itertools.accumulate.__reduce__ and __setstate__ ( #4434 )
...
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com >
2023-06-12 19:26:03 +09:00
MisileLaboratory
9cab670bf8
Remove uneeded mutable variable declaration ( #5004 )
2023-06-12 12:19:43 +03:00
Jim Fasarakis-Hilliard
3a2a1d1b74
Remove unecessary unsafe, remove generated file in extra_snippets. ( #4998 )
2023-06-11 06:03:01 +03:00
Jim Fasarakis-Hilliard
0f2ea6a1f3
Merge pull request #4994 from LucaSforza/main
...
Added constructor for Settings called with_path
2023-06-10 13:35:44 +03:00
Steve Shi
de0d323ad3
change dependency from num-bigint to malachite-bigint ( #4952 )
2023-06-08 14:28:39 +09:00
LucaSforza
01486830e3
Added constructor for Settings called with_path
2023-06-07 17:56:07 +02:00
Jeong, YunWon
7a3f965396
new ast layout for arguments ( #4978 )
2023-06-02 17:07:34 +09:00
Ankit Kumar Pandey
058f8c5500
Add fork support functions ( #4972 )
2023-06-01 15:29:16 +09:00
Patrick
0e24cf48c6
Fix abc error message ( #4987 )
...
* Print correct error message for abc instantiation
* Update dataclasses abc test
2023-05-23 16:43:52 +09:00
Jim Fasarakis-Hilliard
9ba6027599
Merge pull request #4979 from patrickzbhe/del-local-scope
...
Check variables in local scope in DeleteFast
2023-05-19 21:52:18 +03:00
jinnarajin
050f0bd0ad
weakref.__reversed__ fixed ( #4780 )
2023-05-19 23:43:07 +09:00
Patrick He
ab3862d7f4
formatting
2023-05-19 05:12:23 -04:00
Patrick He
f4b54082cf
Check variables in scope in DeleteFast
2023-05-19 05:06:15 -04:00
Luca Sforza
a1d9c649f6
Implemented __reduce__ method for types.SimpleNamespace ( #4975 )
2023-05-17 10:47:43 +09:00
Luca Sforza
3ae6ce5216
Implemented __reduce__ method for the ImportError exception ( #4973 )
2023-05-15 20:51:20 +09:00
Jeong, YunWon
f5fc30ae63
Move range to each Node ( #4969 )
2023-05-15 17:00:23 +09:00
Micha Reiser
7a6000d181
Use format and cformat from rustpython-literal ( #4968 )
...
* Use `format` and `cformat` from `rustpython-literal`
* Remove unused dependencies, use `rustpython-format`
2023-05-13 02:58:02 +09:00
Jeong, YunWon
15fdf1ee5b
Merge pull request #4967 from youknowone/fix-bytearray
...
Fix repr(bytearray) in debug
2023-05-12 20:49:50 +09:00
Jeong YunWon
4c2ab63185
Fix repr(bytearray) in debug
2023-05-12 06:52:11 +09:00
Jeong, YunWon
0a10e6cbea
Merge pull request #4963 from matthew-hagemann/fix/silent-if-error-in-trace()
...
Set trace_func / profile_func to none on error
2023-05-12 05:51:50 +09:00
Jeong, YunWon
833371918d
Merge pull request #4959 from bjoroen/report_overflow_error
...
Report overflow error
2023-05-11 17:13:34 +09:00
Matthew Hagemann
a5f08d77a7
Set trace_func / profile_func to none on error
2023-05-10 23:00:22 +02:00
Jeong YunWon
4064c84cb4
ast::Identifier and ast::Int
2023-05-10 20:31:35 +09:00
Jeong YunWon
dc569e9921
Refactoring
2023-05-10 19:35:27 +09:00
Jeong YunWon
f1b261b4f8
Adapt byte-offset location
2023-05-10 04:13:30 +09:00
Eirik Bjoroen
fa30d33c9b
Added both errors, and used value error for year, month, day and overflow for hour, min and sec - test now passes
2023-05-08 20:52:23 +02:00
Eirik Bjoroen
3d9fb36cde
Changed what error message is shown
2023-05-07 18:46:48 +02:00
Eirik Bjoroen
6603c46b41
Changed what type of error gets reported
2023-05-07 18:36:06 +02:00
Jeong YunWon
c7025f70d5
Remove PySymbol*Ref types
2023-05-08 01:11:13 +09:00