mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +00:00
Implement and apply PEP 322, reverse iteration
This commit is contained in:
parent
f607fc5395
commit
85c20a41df
12 changed files with 198 additions and 9 deletions
|
@ -421,8 +421,7 @@ class Message:
|
|||
hit = 0
|
||||
if hit:
|
||||
list.append(i)
|
||||
list.reverse()
|
||||
for i in list:
|
||||
for i in reversed(list):
|
||||
del self.headers[i]
|
||||
|
||||
def setdefault(self, name, default=""):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue