[Python-ideas] Pass a function as the argument "step" of range()

Terry Reedy tjreedy at udel.edu
Fri Jul 3 00:01:07 CEST 2015


On 7/2/2015 4:20 PM, Pierre Quentel wrote:
>
> I agree that this is a blocking issue : as far as I know all Python
> built-in functions return objects of a given type, regardless of its
> arguments.

That is generally true.  But classes always return instances of the 
class when called, and range is a class, not a function.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list