Changed pyclass name of PyArray and PyArrayIter #3612

This commit is contained in:
rebunto authored and GitHub committed 2022-05-04 14:08:34 +09:00
1 parent 01eff92196
commit 392a9476a7
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -105,3 +105,10 @@ u = array('u', test_str)
if u.itemsize >= 4:
assert u.__reduce_ex__(1)[1][1] == list(test_str)
assert loads(dumps(u, 1)) == loads(dumps(u, 3))
# test array name
a = array('b', [])
assert str(a.__class__.__name__) == "array"
# test arrayiterator name
i = iter(a)
assert str(i.__class__.__name__) == "arrayiterator"
+1 -1
View File
@@ -1280,7 +1280,7 @@ mod array {
}
#[pyattr]
#[pyclass(name = "array_iterator")]
#[pyclass(name = "arrayiterator")]
#[derive(Debug, PyPayload)]
pub struct PyArrayIter {
position: AtomicUsize,