[Python-3000] Type annotations: annotating generators

Aahz aahz at pythoncraft.com
Sun May 21 21:53:11 CEST 2006


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.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"I saw `cout' being shifted "Hello world" times to the left and stopped
right there."  --Steve Gonedes


More information about the Python-3000 mailing list