Skip to content

Commit

Permalink
small cosmetic changes on iterator types specs
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Oct 17, 2024
1 parent ae3ffc3 commit 558ce3c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Objects/memoryobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3405,9 +3405,7 @@ PyTypeObject _PyMemoryIter_Type = {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_name = "memory_iterator",
.tp_basicsize = sizeof(memoryiterobject),
// methods
.tp_dealloc = memoryiter_dealloc,
.tp_getattro = PyObject_GenericGetAttr,
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
.tp_traverse = memoryiter_traverse,
.tp_iter = PyObject_SelfIter,
Expand Down Expand Up @@ -3458,10 +3456,9 @@ memoryview___reversed___impl(PyMemoryViewObject *self)

PyTypeObject _PyMemoryRevIter_Type = {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
"memory_reverseiterator",
sizeof(memoryiterobject),
.tp_name = "memory_reverseiterator",
.tp_basicsize = sizeof(memoryiterobject),
.tp_dealloc = memoryiter_dealloc,
.tp_getattro = PyObject_GenericGetAttr,
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
.tp_traverse = memoryiter_traverse,
.tp_iter = PyObject_SelfIter,
Expand Down

0 comments on commit 558ce3c

Please sign in to comment.