2017-04-03 | Paul Boddie | raw files shortlog changelog graph | Fixed the augmented multiplication operation for lists. | |
lib/__builtins__/list.py (file) |
1.1 --- a/lib/__builtins__/list.py Mon Apr 03 22:00:06 2017 +0200 1.2 +++ b/lib/__builtins__/list.py Mon Apr 03 23:27:35 2017 +0200 1.3 @@ -129,8 +129,9 @@ 1.4 1.5 "Replicate 'l' 'other' times." 1.6 1.7 + copy = list(self) 1.8 while other > 1: 1.9 - l.extend(self) 1.10 + l.extend(copy) 1.11 other -= 1 1.12 return l 1.13