projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c23d18a
)
load_appends(): replaced .append() loop with an .extend().
author
Tim Peters
<tim.peters@gmail.com>
Tue, 28 Jan 2003 01:44:45 +0000
(
01:44
+0000)
committer
Tim Peters
<tim.peters@gmail.com>
Tue, 28 Jan 2003 01:44:45 +0000
(
01:44
+0000)
Lib/pickle.py
patch
|
blob
|
history
diff --git
a/Lib/pickle.py
b/Lib/pickle.py
index b6fb41961a4268b77c9853768f65a87971fbfa61..62f7a5849a725614a90c8e73888e8bd276f4336e 100644
(file)
--- a/
Lib/pickle.py
+++ b/
Lib/pickle.py
@@
-1021,9
+1021,7
@@
class Unpickler:
stack = self.stack
mark = self.marker()
list = stack[mark - 1]
- for i in range(mark + 1, len(stack)):
- list.append(stack[i])
-
+ list.extend(stack[mark + 1:])
del stack[mark:]
dispatch[APPENDS] = load_appends