531 Commits

Author SHA1 Message Date
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
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
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
rishit khandelwal
1823dc09fa add asin and acos 2021-10-05 17:01:49 +05:30
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
Jeong YunWon
dba32493d6 Add safety comment to stdlib/src/ssl.rs 2021-10-05 02:43:08 +09:00
Jeong YunWon
bbbdaf32e4 Merge pull request #3202 from youknowone/pyiter-more
Remove not very useful iterator utilty functions
2021-10-04 16:19:49 +09:00
Jim Fasarakis-Hilliard
c1e81bf963 Merge pull request #3137 from youknowone/fix-array-repr
Fix array repr
2021-10-04 08:13:10 +03:00
Jeong YunWon
32770249eb remove iterator::stop_iter_with_value 2021-10-04 04:53:46 +09:00
Noah
7ba21876ad Remove manual ssl bindings 2021-10-02 22:20:31 -05:00
Noah
7d478789d2 Fix obj2txt 2021-10-02 22:20:31 -05:00
Noah
f8c45d14f0 Improve SSLError message 2021-10-02 22:20:31 -05:00
Noah
6d4de560f7 Don't use RAND_pseudo_bytes anymore 2021-10-02 22:20:31 -05:00
Noah
8223cb3f68 Fix load_verify_locations to load all certs in cadata 2021-10-02 22:20:31 -05:00
Osman Turan
131c0b195d Add missing randbytes method on random 2021-10-03 05:38:16 +03:00
Jim Fasarakis-Hilliard
0edb11ac1e Merge pull request #3195 from youknowone/py-names
clean up py* attributes names
2021-10-02 16:00:10 +03:00
Jeong YunWon
2c8020a081 clean up py* attributes names 2021-10-02 16:59:33 +09:00
snowapril
aa2a7f01ee add PyMapping as PyObjectRef wrapper
Modify original `PyMapping` to `PyMappingMethods` and create `PyMapping`
struct as `PyObjectRef` wrapper for implementing `PyMapping_*`
functions. https://docs.python.org/3/c-api/mapping.html

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-02 16:45:34 +09:00
snowapril
4fd0681498 move mapping protocol to rustpython_vm::protocol
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-02 14:47:19 +09:00
snowapril
1fbbdaabe3 support delitem in ass_subscript 2021-10-02 14:43:20 +09:00
snowapril
fc761b4e5b add mapping protocol to proper types 2021-10-02 14:43:20 +09:00
Jim Fasarakis-Hilliard
2a31646d2f Merge pull request #3181 from emhagman/cmath-sinh-cosh
Add sinh and cosh to cmath implementation
2021-10-01 21:03:31 +03:00
Eric Hagman
014dc9d20f fix: run cargo fmt 2021-10-01 13:04:56 -04:00
Eric Hagman
787f6c1be6 Merge remote-tracking branch 'upstream/main' into cmath-sinh-cosh 2021-10-01 10:00:09 -04:00
Jeong YunWon
fee0054940 Fix array repr 2021-10-01 22:35:09 +09:00
Jeong YunWon
ff1129adb7 PyIterReturn for StopIteration
Same as ArithmaticValue for NotImplemented
2021-10-01 22:33:57 +09:00
Jeong YunWon
fb25a15f2c split rustpython-stdlib crate 2021-10-01 01:54:04 +09:00