Skip to content

Commit a460fbe

Browse files
committed
Clarify LIFO vs FIFO
The last commit used the wrong verbiage in a comment. This fixes it and clarifies that MutableMapping uses FIFO.
1 parent 15acd1f commit a460fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/collections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def copy(self):
12551255

12561256

12571257
# This method has a default implementation in MutableMapping, but dict's
1258-
# equivalent is first-in, first-out.
1258+
# equivalent is last-in, first-out instead of first-in, first-out.
12591259
def popitem(self):
12601260
return self.data.popitem()
12611261

0 commit comments

Comments
 (0)