Commit Graph

9660 Commits

Author SHA1 Message Date
Jeong YunWon
141ff2bb2f _socket uses #[pymodule] 2021-10-14 14:11:21 +09:00
Jeong YunWon
9c6eaa5603 Merge pull request #3164 from moreal/correct-pystr-startswith
Fix `PyStr::startswith`
2021-10-13 23:01:51 +09:00
Jeong YunWon
9ee566b929 Merge pull request #3288 from Snowapril/add_getattro_for_ga
Add missing `SlotGetattro` for `GenericAlias`
2021-10-13 22:58:22 +09:00
Jeong YunWon
c39d1436e0 Merge pull request #3133 from youknowone/exception-utils-as-vm-methods
Exception utils as vm methods
2021-10-13 22:35:51 +09:00
Jeong YunWon
2423f34b21 Merge pull request #3285 from youknowone/ssl
`_ssl` module uses `#[pymodule]`
2021-10-13 22:35:10 +09:00
Jeong YunWon
0820708f0e _ssl module uses #[pymodule] 2021-10-13 15:31:11 +09:00
snowapril
f3fc4e40dd add missing SlotConstructor keyword on impl
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-13 15:14:01 +09:00
snowapril
6d3289f8cb add SlotGetattro on GenericAlias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-13 15:14:01 +09:00
Jeong YunWon
7d6b36a55f Merge pull request #3273 from youknowone/into-pystrref
migrate TryIntoRef to IntoPyStrRef
2021-10-13 15:06:01 +09:00
Jim Fasarakis-Hilliard
e97ad7d81d Merge pull request #3287 from Snowapril/fix-dir-incompatibility
Fix `dir` incompatibility with cpython
2021-10-13 09:03:05 +03:00
Jim Fasarakis-Hilliard
a81f97dd9e Merge pull request #3280 from DimitrisJim/bad_indexing
Fix deadlocks when slicing mutable sequences.
2021-10-13 08:14:41 +03:00
Aphek
e732669224 Make it possible for rust functions to increase recursion depth (#3252)
Make it possible for rust functions to increase recursion depth
2021-10-13 08:12:12 +03:00
jfh
0539d33ce4 Export saturated index via slicable, use better naming conventions. 2021-10-13 07:05:26 +03:00
snowapril
c10e64647d add missing dir in GenericAlias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-13 12:40:24 +09:00
snowapril
213ffd9ff3 move dir in builtins to vm
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-13 12:40:24 +09:00
Jeong YunWon
367b258862 Merge pull request #3286 from RustPython/coolreader18/mailmap
Add .mailmap
2021-10-13 05:57:26 +09:00
varun-krishnan
f5c4c0b4c0 added gethostbyname_ex function 2021-10-13 05:56:54 +09:00
Jeong YunWon
256de1eb46 Move free functions in vm::exceptions to vm methods 2021-10-13 05:53:43 +09:00
Noa
57a9db865b Add .mailmap 2021-10-12 15:43:02 -05:00
Jeong YunWon
319914d021 Optional subrange operation in StartsEndsWithArgs 2021-10-13 05:39:53 +09:00
Jeong YunWon
6f902d2705 Merge pull request #3283 from youknowone/comprehension
Do not check type when bytecode instruction already knows that
2021-10-13 05:09:20 +09:00
Jeong YunWon
527a4d9f92 Do not check type when bytecode instruction already knows that 2021-10-13 03:59:30 +09:00
Moreal
a18e6a7b2b Wrap range with its meaning 2021-10-13 00:48:17 +09:00
Moreal
580849dec3 Apply cargo clippy 2021-10-13 00:39:04 +09:00
Moreal
2c66612ee5 Pass slicer manually 2021-10-13 00:39:04 +09:00
Moreal
fa6fa21f70 Pass calculated range instead args 2021-10-13 00:39:04 +09:00
Moreal
643777302b Pass len from caller of anystr::startendswith 2021-10-13 00:39:04 +09:00
Moreal
22eb3018cf Deprecate AnyStr::chars_len again
I implemented 84e5f4212d6a5707748293b9603493661ac33355 again but I deprecate
the method again because it is too expensive.
See also https://github.com/RustPython/RustPython/pull/3164#discussion_r725438699
2021-10-13 00:39:04 +09:00
Moreal
868f104a98 Use cheaper operations by whether it has subrange 2021-10-13 00:39:04 +09:00
Moreal
7946b02202 Unmark fixed tests 2021-10-13 00:39:04 +09:00
Moreal
76ceb59b2b Fix PyStr::startswith 2021-10-13 00:39:04 +09:00
jfh
72ad7120ab Saturate slice before getting a lock on the underlying collection. 2021-10-12 10:00:50 +03:00
jfh
fac6e3168c Use SaturatedIndices instead of convert_slice. 2021-10-12 09:18:12 +03:00
jfh
79ca53ddae Add SaturatedIndices. 2021-10-12 09:17:42 +03:00
Jeong YunWon
e1d56f76dd Merge pull request #3279 from DimitrisJim/flaky_strtod_test
Skip flaky strtod test function.
2021-10-12 14:36:08 +09:00
jfh
cea8abbba8 Skip flaky strtod test function. 2021-10-12 05:10:49 +03:00
Jeong YunWon
79feeb07f6 Merge pull request #3278 from youknowone/pymodule2
_csv, unicodedate uses #[pymodule]
2021-10-12 10:21:41 +09:00
Jeong YunWon
d9e801ed0b Fix sys.__doc__ 2021-10-12 07:10:04 +09:00
Jeong YunWon
054553c59c unicodedata uses #[pymodule] 2021-10-12 07:04:28 +09:00
Jeong YunWon
9d3ce7b5af _csv uses #[pymodule] 2021-10-12 07:04:28 +09:00
Jeong YunWon
71f988e519 Merge pull request #3277 from youknowone/pymodule
_thread/_weakref uses pymodule
2021-10-12 07:03:59 +09:00
Jeong YunWon
5d740cfc9a _weakref uses #[pymodule] 2021-10-12 06:19:56 +09:00
Jeong YunWon
aff0d47090 _thread uses #[pymodule] 2021-10-12 06:19:56 +09:00
Jeong YunWon
e7b8b899e1 Merge pull request #3276 from youknowone/sys-pymodule
sys uses #[pymodule]
2021-10-12 06:19:41 +09:00
Jeong YunWon
47997b7af7 sys uses #[pymodule] 2021-10-12 05:39:42 +09:00
Jeong YunWon
63ab4e454b Better error messages for pymodule 2021-10-12 05:34:46 +09:00
Jeong YunWon
417708e3c6 Merge pull request #3275 from youknowone/imp-pymodule
`_imp` uses #[pymodule]
2021-10-12 04:22:48 +09:00
Jeong YunWon
e052cd8ef6 Merge pull request #3274 from youknowone/pwd-pymodule
use #[pymodule] for pwd
2021-10-12 03:50:40 +09:00
Jeong YunWon
0a73b81785 _imp uses #[pymodule] 2021-10-12 03:10:32 +09:00
Jeong YunWon
81b737b41f use #[pymodule] for pwd 2021-10-12 02:55:30 +09:00