# HG changeset patch # User Paul Boddie # Date 1716312045 -7200 # Node ID fafb89959ac943fe276ae81037b57ebe21f548ba # Parent e16d60edc3676c0f54d3e309f1a346dc4e6fddf0# Parent 8bcbea777be94d312d9bf9d1a2ff0ff3a2b6fcec Merged changes from the value-replacement branch. diff -r e16d60edc367 -r fafb89959ac9 lib/__builtins__/span.py --- a/lib/__builtins__/span.py Tue May 21 17:02:49 2024 +0200 +++ b/lib/__builtins__/span.py Tue May 21 19:20:45 2024 +0200 @@ -3,7 +3,7 @@ """ Span-related objects. -Copyright (C) 2015, 2016, 2017, 2018, 2019 Paul Boddie +Copyright (C) 2015-2019, 2024 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -104,8 +104,8 @@ raise StopIteration, self current = self.current - self.current = self.current.__add__(self.step) - self.count = self.count.__sub__(1) + self.current += self.step + self.count -= 1 return current def range(start_or_end, end=None, step=1):