[Python-ideas] 'default' keyword argument for max(), min()

spir denis.spir at free.fr
Thu Apr 16 19:40:39 CEST 2009


Le Thu, 16 Apr 2009 14:14:25 +0200,
"Marcin 'Qrczak' Kowalczyk" <qrczak at knm.org.pl> s'exprima ainsi:

> It would even make sense to allow initial and default only if args has
> length 1. This would again exclude cases where the arguments contain a
> statically known redundancy, but this time the preconditions would be
> more complicated.

As I understand it, anyway, default really makes sense only when args has length 1 and args[0] is an iterable.
Cannot really see the sense of initial for min()/max().

Denis
------
la vita e estrany



More information about the Python-ideas mailing list