jfh
|
acfdf9ceaa
|
Move try_complex into PyObjectRef
|
2021-10-07 12:23:12 +03:00 |
|
jfh
|
7387324f59
|
Add ArgComplexLike
|
2021-10-07 12:06:26 +03:00 |
|
Jeong YunWon
|
d49ab19fab
|
Merge pull request #3209 from osman-turan/main
Add missing randbytes method on random
|
2021-10-07 01:14:22 +09:00 |
|
Jim Fasarakis-Hilliard
|
c8651a255b
|
Merge pull request #3237 from DimitrisJim/restore_test_cmath
Restore test_cmath to original form.
|
2021-10-06 19:08:55 +03:00 |
|
frazar
|
2c09dd8535
|
Align test outcomes with Python 3.9.7 (#3230)
|
2021-10-06 18:23:02 +03:00 |
|
Jim Fasarakis-Hilliard
|
3cf4454fa7
|
Merge pull request #3234 from youknowone/further-repr-fix
Single pass repr for set
|
2021-10-06 18:02:50 +03:00 |
|
Osman Turan
|
0f6a773187
|
Merge branch 'RustPython:main' into main
|
2021-10-06 17:32:18 +03:00 |
|
jfh
|
ac40213a6a
|
Restore test_cmath to original form.
|
2021-10-06 17:20:42 +03:00 |
|
Jeong YunWon
|
fccbc45a2e
|
Merge pull request #3172 from youknowone/try-into-object
PyObjectRef::try_into_value
|
2021-10-06 22:25:41 +09:00 |
|
Jeong YunWon
|
f9fbc486d8
|
Merge pull request #3136 from youknowone/buffer-writable
ResizeGuard -> BufferResizeGuard
|
2021-10-06 22:25:01 +09:00 |
|
Jeong YunWon
|
cf9e3f301a
|
Merge pull request #3233 from DimitrisJim/use_try
Clean up overflow cases.
|
2021-10-06 22:19:29 +09:00 |
|
Jeong YunWon
|
6a8d7e675f
|
Merge pull request #3235 from Snowapril/zip_strict_option
Add length check, `reduce`, `setstate` on zip from cpython 3.10
|
2021-10-06 22:15:09 +09:00 |
|
snowapril
|
b4db50b59e
|
add __setstate__ and __reduce__ from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
|
2021-10-06 20:52:09 +09:00 |
|
snowapril
|
1a542d294a
|
add length_check on zip via option strict param
when strict option is enabled, zipped iterators' lengths are must be
same. If not, value error will be occurred
* https://www.python.org/dev/peps/pep-0618/
Signed-off-by: snowapril <sinjihng@gmail.com>
|
2021-10-06 20:51:11 +09:00 |
|
snowapril
|
30a37b5baf
|
remove decorator on unexpected success test
Signed-off-by: snowapril <sinjihng@gmail.com>
|
2021-10-06 20:25:10 +09:00 |
|
snowapril
|
53e8c77c3b
|
add zip related tests from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
|
2021-10-06 20:25:10 +09:00 |
|
Jeong YunWon
|
ad111f19b7
|
ResizeGuard -> BufferResizeGuard
|
2021-10-06 20:21:36 +09:00 |
|
Jeong YunWon
|
38b62e2585
|
PyObjectRef::try_into_value
as counterpart of TryFromObject::try_from_object
This is useful when the type to infer is known
|
2021-10-06 20:15:13 +09:00 |
|
jfh
|
d5b7f1ead1
|
Clean up overflow cases.
|
2021-10-06 14:00:38 +03:00 |
|
Jeong YunWon
|
6b834b65fb
|
PyByteInner::repr to take class name
|
2021-10-06 20:00:03 +09:00 |
|
Jeong YunWon
|
7690a4cc32
|
single pass set repr
|
2021-10-06 20:00:03 +09:00 |
|
Jeong YunWon
|
13ca594de5
|
Merge pull request #3219 from muscar/fix/repr-use-collection-subclass-name
fix: __repr__ use collection subclass name
|
2021-10-06 19:59:48 +09:00 |
|
Jeong YunWon
|
4f16f8127a
|
Merge pull request #3112 from youknowone/into-what
move IntoPy{Object, Exception, Result} to vm::function
|
2021-10-06 19:11:54 +09:00 |
|
Jeong YunWon
|
ceda5fe8c3
|
gather jit parts
|
2021-10-06 19:10:18 +09:00 |
|
Jeong YunWon
|
92de3619fa
|
move IntoPy{Object, Exception, Result} to vm::function
which are used to define function arguments - those functions are mostly placed in the crate
|
2021-10-06 19:10:16 +09:00 |
|
Jeong YunWon
|
f1977c130d
|
Merge pull request #3231 from DimitrisJim/dict_ior
Fix dict __ior__
|
2021-10-06 19:07:03 +09:00 |
|
Jeong YunWon
|
3070807d30
|
clean up dict more
|
2021-10-06 18:06:40 +09:00 |
|
Alex Muscar
|
cd4216097f
|
fix: __repr__ use collection subclass name
Addresses: https://github.com/RustPython/RustPython/issues/3217
This patch changes the `set`, `frozenset`, `deque` and `bytearray`
collections to use the subclass name in `__repr__`, if they are
subclassed.
|
2021-10-06 10:01:36 +01:00 |
|
jfh
|
9204d2c11e
|
Fix dict __ior__
|
2021-10-06 11:19:02 +03:00 |
|
Jim Fasarakis-Hilliard
|
a28eadef7f
|
Merge pull request #3203 from muscar/fix/forbid-store-to-debug-builtin
Forbid stores to the __debug__ builtin
|
2021-10-06 09:14:35 +03:00 |
|
Jim Fasarakis-Hilliard
|
acb7905048
|
Merge pull request #3227 from rishit-khandelwal/main
Add asin and acos
|
2021-10-06 08:56:22 +03:00 |
|
Jim Fasarakis-Hilliard
|
02d248f0b4
|
Merge pull request #3229 from youknowone/sys-max
Use sys::MAXSIZE when isize::MAX is used as a meaning of sys.maxsize
|
2021-10-06 08:55:28 +03:00 |
|
Noa
|
5b648cc3ba
|
Fix wasi 2
|
2021-10-05 16:43:01 -05:00 |
|
Noa
|
57305870fa
|
Merge pull request #3178 from RustPython/wasi-fixes
Fixes for wasi
|
2021-10-05 16:21:17 -05:00 |
|
Jeong YunWon
|
d105c2b2a5
|
Use sys::MAXSIZE when isize::MAX is used as a meaning of sys.maxsize
|
2021-10-06 05:16:01 +09:00 |
|
Jeong YunWon
|
397daaeea4
|
Merge pull request #2831 from youknowone/cpython3.9
bump up reference CPython to 3.9
|
2021-10-06 04:58:30 +09:00 |
|
Jeong YunWon
|
4d19f9a0cf
|
Merge pull request #3224 from youknowone/remove-tryformobject-bigint
Remove TryFromBorrowedObject for BigInt
|
2021-10-06 04:07:16 +09:00 |
|
Jeong YunWon
|
d2fe6e8ea2
|
Merge pull request #3223 from pheki/fix-test-chr
Fix test_chr by raising a ValueError on chr(-1) instead of OverflowError
|
2021-10-06 02:12:29 +09:00 |
|
Aphek
|
1ff85118fc
|
Fix test_chr by raising a ValueError on chr(-1) instead of OverflowError
|
2021-10-05 12:40:20 -03:00 |
|
Jeong YunWon
|
b38af34e9e
|
Merge pull request #3220 from youknowone/slot-destructor
Use SlotDestructor for _IOBase
|
2021-10-06 00:18:24 +09:00 |
|
Jim Fasarakis-Hilliard
|
c529fbb72d
|
Merge pull request #3226 from youknowone/thread-lock-new
Forbid calls to _thread.LockType.__new__
|
2021-10-05 15:58:08 +03:00 |
|
rishit khandelwal
|
1823dc09fa
|
add asin and acos
|
2021-10-05 17:01:49 +05:30 |
|
Jeong YunWon
|
2ca3dc4468
|
_therad.LockType.__new__
|
2021-10-05 19:37:07 +09:00 |
|
Jeong YunWon
|
70f1cc8010
|
Remvoe TryFromBorrowedObject for BigInt
which implicitly cost BigInt clone
|
2021-10-05 17:33:28 +09:00 |
|
Alex Muscar
|
46f070b14d
|
Consolidate error handling for builtin "constants" mutations
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
|
2021-10-05 09:11:42 +01:00 |
|
Alex Muscar
|
94ae5a3af8
|
fix: forbid stores to the __debug__ builtin #3203
According to [the docs][1], `__debug__` is treated as a constant by the
interpreter.
This patch adds some checks to bring RustPython's behaviour in line with
cpython's.
[1]: https://docs.python.org/3/library/constants.html#built-in-constants
|
2021-10-05 09:11:42 +01:00 |
|
Jeong YunWon
|
5254265e3a
|
Merge pull request #3218 from lijm1358/deque-repr
Fix deque `repr` to print correct format
|
2021-10-05 06:38:09 +09:00 |
|
Jeong YunWon
|
d3066d75a7
|
Use SlotDestructor for _IOBase
|
2021-10-05 06:27:01 +09:00 |
|
Noah
|
bbdaa98731
|
obj2txt safety comment
|
2021-10-04 12:46:01 -05:00 |
|
Jeong YunWon
|
efce02f19d
|
Merge pull request #3210 from RustPython/coolreader18/fix-windows-ssl
Fix windows ssl
|
2021-10-05 02:43:19 +09:00 |
|