Commit Graph
101 Commits
Author SHA1 Message Date
Tetramad c88c69a993 Fix math.log1p to pass some failed tests
Now math.log1p with less than or equal to negative one should raise
ValueError with "math domain error" message
2021-10-25 14:44:13 +09:00
Tetramad 3d8f6cf08d Fix math.log to pass some failed tests
Now math.log with less than or equal to zero should raise ValueError
with "math domain error" message if `x` fit in f64
2021-10-25 14:44:08 +09:00
Tetramad ba3cafc932 Fix math.atanh to pass failed tests
Now math.atanh with out of domain value should raise ValueError with
"math domain error" message
2021-10-25 10:45:11 +09:00
jfh 611e755599 Fix some uncaught clippy warnings. 2021-10-24 12:23:02 +03:00
jfh a8b00ef2b1 Export RUSAGE_* symbols. 2021-10-22 10:17:28 +03:00
Jeong YunWon 6138cb4476 Merge pull request #3357 from coolreader18/edition2021
Migrate to 2021 edition
2021-10-22 08:21:45 +09:00
Noa 53c261a19b Switch to array.into_iter() 2021-10-21 17:12:37 -05:00
Noa 09e9ea91e7 TryFrom, TryInto, FromIterator are in prelude now 2021-10-21 17:04:19 -05:00
jfh 103195b277 Remove Python gc stub, add rust stub. 2021-10-21 19:56:20 +03:00
Noa ee8b11f5d2 Migrate to 2021 edition 2021-10-21 11:46:24 -05:00
Jeong YunWon f76877347a Py -> PyObjectView 2021-10-21 18:04:13 +09:00
Jeong YunWon b759808736 PyObj -> PyObject 2021-10-21 17:55:29 +09:00
Jeong YunWon d4feb2a6c5 incref -> to_owned 2021-10-21 17:29:34 +09:00
Noa 8dd18d97be PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T> 2021-10-21 16:49:01 +09:00
Jim Fasarakis-Hilliard 0c07b7cbfc Merge pull request #3349 from AP2008/relocate-str
Relocate `vm.to_str` to `obj.str`
2021-10-20 08:54:24 +03:00
Aratrik fdd1baec65 Relocate vm.to_str to obj.str 2021-10-20 10:28:24 +05:30
Aratrik c427462554 Relocate vm.rich_compare to obj.rich_compare 2021-10-20 09:44:41 +05:30
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