mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Changed pyclass name of PyArray and PyArrayIter #3612
This commit is contained in:
1 parent
01eff92196
commit
392a9476a7
2 files changed
+8
-1
No files matched your search
@@ -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
@@ -1280,7 +1280,7 @@ mod array {
|
||||
}
|
||||
|
||||
#[pyattr]
|
||||
#[pyclass(name = "array_iterator")]
|
||||
#[pyclass(name = "arrayiterator")]
|
||||
#[derive(Debug, PyPayload)]
|
||||
pub struct PyArrayIter {
|
||||
position: AtomicUsize,
|
||||
|
||||
Reference in new issue
Block a user