Commit Graph

6270 Commits

Author SHA1 Message Date
Noah
ee124eb85d Make ReprGuard vm-local 2020-08-11 11:07:51 -05:00
Noah
076bab9f15 Use a thread local variable for ReprGuard 2020-08-11 11:06:06 -05:00
Noah
3a6442f63f Merge pull request #2006 from Lynskylate/try-to-use-local
Use loadname local replace loadname free
2020-08-11 10:13:35 -05:00
Jeong YunWon
357f2119dc Merge pull request #2102 from youknowone/tp-name
Implement tp_name and derive support
2020-08-11 20:30:40 +09:00
Jeong YunWon
20bae5062c Merge pull request #2098 from youknowone/whats-left
Fix whats_left.sh
2020-08-11 06:21:51 +09:00
Jeong YunWon
af3f3d5951 pystruct_sequence uses tp_name for repr again 2020-08-11 06:16:59 +09:00
Jeong YunWon
82b2a4d63d tp_name for pyclass/pystruct_sequence 2020-08-11 06:16:59 +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
f164b757d4 inject module name into class 2020-08-11 05:54:24 +09:00
Jeong YunWon
dbafdb18b9 dynamic repr for pystruct_seqeunce 2020-08-11 05:54:23 +09:00
Noah
62d9a0aa37 Merge pull request #2100 from youknowone/os-execv
os.execv reuse first arg for validation
2020-08-10 14:08:05 -05:00
Noah
f785670591 Merge pull request #2099 from youknowone/strip-prefix
Remove derive::util::strip_prefix
2020-08-10 13:27:32 -05:00
Jeong YunWon
e821cf90dd os.execv reuse first arg for validation 2020-08-11 02:34:51 +09:00
Jeong YunWon
ad1da1d0d8 Remove derive::util::strip_prefix 2020-08-11 02:28:46 +09:00
Jeong YunWon
651ad14b3d Fix whats_left.sh 2020-08-11 02:18:20 +09:00
Jeong YunWon
8b1abf64c3 Merge pull request #2096 from youknowone/proc-dupcheck
Enhance pyclass/pymodule
2020-08-11 02:05:40 +09:00
Jeong YunWon
2144644e56 pymodule select 2020-08-11 01:32:38 +09:00
Jeong YunWon
c7b156026c pymodule _posixsubprocess 2020-08-11 01:32:38 +09:00
Jeong YunWon
2f7c4b4d9b pymodule _multiprocessing 2020-08-11 01:32:37 +09:00
Jeong YunWon
b675556502 Merge pull request #2085 from RustPython/coolreader18/no-unimplemented-os
Don't panic when a os function isn't supported on a platform
2020-08-11 01:17:17 +09:00
Jeong YunWon
dcf80e606d pymodule marshal 2020-08-11 01:13:47 +09:00
Jeong YunWon
e7848b1eec pymodule faulthandler 2020-08-11 01:13:47 +09:00
Jeong YunWon
db45e07bce _functools into pymodule 2020-08-11 01:11:10 +09:00
Jeong YunWon
287aaacb81 pymodule keyword 2020-08-11 01:11:09 +09:00
Jeong YunWon
c93ea3df34 pymodule _json 2020-08-11 01:10:18 +09:00
Jeong YunWon
8baf999403 pyattr has priority to pyclass 2020-08-11 01:06:38 +09:00
Jeong YunWon
be39c8cd93 pymodule dis 2020-08-11 01:06:38 +09:00
Jeong YunWon
6f32c24f45 no more extend_module_platform_specific in os.rs 2020-08-11 01:06:38 +09:00
Jeong YunWon
750554c2f8 os attributes with pyattr 2020-08-11 01:06:38 +09:00
Jeong YunWon
5eaa42b215 pyattr for const 2020-08-11 01:06:38 +09:00
Jeong YunWon
97122cf2c6 py* macro checks type before generation 2020-08-11 01:06:38 +09:00
Jeong YunWon
6b5b99b404 new module attribute pyattr for evaluated attributes 2020-08-11 01:06:38 +09:00
Jeong YunWon
6b6d70534b Fix duplicated attribute checker for pymodule 2020-08-11 01:06:38 +09:00
Jeong YunWon
d9b2a25d8a Fix duplicated attribute checker for pyclass 2020-08-11 01:06:38 +09:00
Noah
b0f0631ba2 Merge pull request #2078 from youknowone/new-object
vm.new_pystr and vm.ctx.new_str
2020-08-10 10:42:59 -05:00
Noah
bbbe3fded7 Don't panic when a os function isn't supported on a platform 2020-08-10 10:31:11 -05:00
Jeong YunWon
c99f7f8006 Merge pull request #2093 from BasixKOR/win-tests
Disable certain CPython tests on Windows
2020-08-10 03:02:40 +09:00
lynskylate
2f267378c2 Fix redefine error 2020-08-10 01:50:39 +08:00
Basix
e2279bea2b Disable test_threadedtempfile on Windows
Calling test.support.start_thread hangs.
2020-08-10 02:36:29 +09:00
Basix
9868f63f50 Skip CPython-specific test on Windows
Check its comments for details
2020-08-10 02:36:29 +09:00
Basix
e5178574f0 Skip rescursion tests on Windows
See #2050
2020-08-10 02:36:29 +09:00
Jeong YunWon
7587806eae BigInt into_pyobject shares impl 2020-08-10 02:16:50 +09:00
Jeong YunWon
e253095f75 new_str allows &str and &String 2020-08-10 02:16:50 +09:00
Jeong YunWon
eba638ec9b impl &String for PyString 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
df20a26253 vm.new_pyobj 2020-08-10 01:54:32 +09:00
Jeong YunWon
4506e21af9 Merge pull request #2092 from youknowone/small-fix
Small edits
2020-08-10 01:53:41 +09:00
Jeong YunWon
921310a59b PyMatch::captures use Range<usize> instead of (usize, usize) 2020-08-10 00:15:25 +09:00
Jeong YunWon
93a5b9116d Prevent clone from dir 2020-08-09 23:56:53 +09:00
Jeong YunWon
a197fc0af1 move instead of ref for format_internal 2020-08-09 23:56:29 +09:00