[Python-ideas] 'default' keyword argument for max(), min()
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 is an iterable.
Cannot really see the sense of initial for min()/max().
la vita e estrany
More information about the Python-ideas