Skip to content

Commit c00dabe

Browse files
committed
formerly deprecate the iteritems of vectors
1 parent 64c6311 commit c00dabe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sage/modules/free_module_element.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,8 @@ cdef class FreeModuleElement(Vector): # abstract base class
17151715
cdef dict d = self.dict(copy=False)
17161716
yield from d.items()
17171717

1718+
iteritems = deprecated_function_alias(40960, "items")
1719+
17181720
def __abs__(self):
17191721
"""
17201722
Return the square root of the sum of the squares of the entries of
@@ -5214,6 +5216,8 @@ cdef class FreeModuleElement_generic_sparse(FreeModuleElement):
52145216
"""
52155217
return iter(self._entries.items())
52165218
5219+
iteritems = deprecated_function_alias(40960, "items")
5220+
52175221
def __reduce__(self):
52185222
"""
52195223
EXAMPLES::

0 commit comments

Comments
 (0)