[Python-3000] Type annotations: annotating generators
Collin Winter
collinw at gmail.com
Sun May 21 22:23:35 CEST 2006
On 5/21/06, Aahz <aahz at pythoncraft.com> wrote:
> On Sun, May 21, 2006, Collin Winter wrote:
> >
> > This is something I've been meaning to bring up: if we're serious
> > about the "tuples = fixed-length collections, lists = unknown-length
> > collections" distinction, then the CPython core should switch over to
> > this mindset as well. The fact that Python 2.x uses a tuple for
> > *varargs has caused me to jump through a number of hoops in my own
> > typecheck package.
>
> This is a guideline, not a rule, and the speed and size of tuples make
> them more appropriate for varargs.
Honest question: what is so special about *varargs that demands
tuple's speed and size characteristics?
Collin Winter
More information about the Python-3000
mailing list