[Python-ideas] function defaults and an empty() builtin

Terry Reedy tjreedy at udel.edu
Sat May 21 23:06:01 CEST 2011


On 5/20/2011 3:18 PM, Masklinn wrote:
>
> Because you're iterating period, and that it's an empty list has no
> influence on your behavior. You'll simply do nothing during your
> iteration, because the iteration count will be 0. Why special-case
> empty lists when there is no need to?

An empty tuple () works fine for that. You never explained in any way I 
could remotely understand why you want something else.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list