Commit Graph
84 Commits
Author SHA1 Message Date
ChJR 6b14756542 Relocate vm.obj_len to obj.length 2021-10-20 02:08:45 +09:00
Jeong YunWon 7f6e016526 Merge pull request #3282 from youknowone/remove-ref
Whitelist special-enough types to have PyRef aliases
2021-10-18 14:44:29 +09:00
Noa 27540e1d35 Add unparse feature to ast 2021-10-17 21:55:27 -05:00
Jeong YunWon 997f85ff54 Less PyListRef 2021-10-18 05:15:56 +09:00
Jeong YunWon 7377664bea Remove PyFloatRef 2021-10-18 05:14:54 +09:00
jfh 7bc10da154 Relocate vm.get_attribute to obj.get_attr. 2021-10-17 10:30:21 +03:00
Jeong YunWon 22b3679529 as_mapping never fails 2021-10-15 05:45:54 +09:00
Jeong YunWon 521a50b6a1 clean up Callable 2021-10-14 17:26:04 +09:00
Jeong YunWon 2ac85e55aa Merge pull request #3292 from youknowone/socket
_socket uses `#[pymodule]`
2021-10-14 17:18:24 +09:00
Jeong YunWon 617e524556 clean up windows socket attrs 2021-10-14 16:36:01 +09:00
Jeong YunWon 141ff2bb2f _socket uses #[pymodule] 2021-10-14 14:11:21 +09:00
Jeong YunWon 8cdde9150e Rename slot traits to drop Slot prefix 2021-10-14 13:44:22 +09:00
Jeong YunWon 7cae6d24fe Refactor PyType creation 2021-10-14 13:37:45 +09:00
Jeong YunWon 0820708f0e _ssl module uses #[pymodule] 2021-10-13 15:31:11 +09: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
jfh 0539d33ce4 Export saturated index via slicable, use better naming conventions. 2021-10-13 07:05:26 +03:00
varun-krishnan f5c4c0b4c0 added gethostbyname_ex function 2021-10-13 05:56:54 +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
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 05dca7a7c8 ctx.new_list returns PyLsitRef 2021-10-12 01:22:36 +09:00
Jeong YunWon a42d547a3f new_{utf8_str, ascii_literal} -> new_str again 2021-10-11 21:28:14 +09:00
Jeong YunWon 379cf2db6f new_bytes return PyRef 2021-10-11 16:10:01 +09:00
Jeong YunWon 5cd375aaa9 clean up functions and methods 2021-10-11 16:10:01 +09:00
jfh a7bd654d0d Use PyTupleRef in reduce return type. 2021-10-11 09:56:00 +03:00
Jeong YunWon b986e6ba85 Merge pull request #3064 from qingshi163/array-pickle
Implement __reduce__ and __reduce_ex__ for array
2021-10-11 15:18:02 +09:00
Jeong YunWon cdd38488f8 allow AsciiStr/AsciiString -> PyStr conversion 2021-10-11 02:01:14 +09:00
Jeong YunWon afe9b9cde0 vm.ctx.new_bool returns PyIntRef 2021-10-11 02:01:14 +09:00
Jeong YunWon 616dfc19e2 vm.new_tuple to convert rust tuple to python tuple 2021-10-11 01:06:07 +09:00
Jeong YunWon 40379a9bc1 new_float returns PyFloat 2021-10-11 01:05:38 +09:00
Jeong YunWon 741cfea565 vm.ctx.new_int returns PyInt 2021-10-11 01:05:38 +09:00
Kangzhi Shi ea69dc53d2 remove test that fail on CPython 2021-10-10 14:48:30 +02:00
Kangzhi Shi cbd7c59329 Fix unicode array pickling 2021-10-10 14:43:34 +02:00
Kangzhi Shi de47cd0acb Impl __reduce_ex__ with _array_reconstructor 2021-10-10 14:43:20 +02:00
Kangzhi Shi ff0adc1204 Impl __reduce__ for array 2021-10-10 14:43:16 +02:00
snowapril 1deb59ce40 modify PyType::name caller codes to use BorrowedValue
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-10 16:07:24 +09:00
Jeong YunWon c83eb12d0a Merge pull request #3258 from youknowone/ascii-buffer
ArgAsciiBuffer
2021-10-09 16:27:47 +09:00
Noa c778480404 WAPM release script 2021-10-08 17:02:18 -05:00
Jeong YunWon e19609ced3 Use PyRef::into_object(vm) instead of into_ref(vm).into() combo 2021-10-08 01:56:02 +09:00
Jeong YunWon 4fb1cdb316 PyObjectWrap 2021-10-08 01:56:00 +09:00
Ben Lewis 48e5feb994 Add AsciiBytesLike to accept both an ascii string or a buffer. 2021-10-07 23:23:32 +09:00
Jeong YunWon 5bee8fc8f6 Merge pull request #3240 from DimitrisJim/numlike_args
Add numlike for handling of numlike arguments
2021-10-07 22:27:51 +09:00
jfh c0420721e0 Rename from ArgTypeLike to ArgIntoType, numlike to number. 2021-10-07 15:30:57 +03:00
jfh b2a2238566 Add ArgBoolLike. 2021-10-07 12:56:01 +03:00
jfh 856f77fb77 Add ArgFloatLike. 2021-10-07 12:34:30 +03:00
jfh 7387324f59 Add ArgComplexLike 2021-10-07 12:06:26 +03:00
Moreal 12709e6fde Use pymodule instead of py_module! for re 2021-10-07 02:16:11 +09: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