[Python-Dev] Rationale for sum()'s design?
michael.walter at gmail.com
Wed Mar 16 15:38:44 CET 2005
On Tue, 15 Mar 2005 07:47:20 -0800, Guido van Rossum
<gvanrossum at gmail.com> wrote:
> But I'm not so sure now. Thinking ahead to generic types, I'd like the
> full signature to be:
> def sum(seq: sequence[T], initial: T = 0) -> T.
Would this _syntax_ work with generic types:
def sum(seq: sequence[T], initial: T = T()) -> T.
More information about the Python-Dev