[Python-Dev] Updated PEP 362 (Function Signature Object)

Alexandre Zani alexandre.zani at gmail.com
Mon Jun 11 05:42:39 CEST 2012


On Sun, Jun 10, 2012 at 1:27 PM, Benjamin Peterson <benjamin at python.org> wrote:
> 2012/6/10 Larry Hastings <larry at hastings.org>:
>> Can you make a more concrete suggestion?  "type" strikes me as a poor choice
>> of name, as it makes one think immediately of type(), which is another, uh,
>> variety of "type".
>
> kind ->
> "position" or
> "keword_only" or
> "vararg" or
> "kwarg"
>
>
> --
> Regards,
> Benjamin
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexandre.zani%40gmail.com

I prefer the flags. Flags means I can just look at the Parameter
object. A "type" or "kind" or whatever means I need to compare to a
bunch of constants. That's more stuff to remember.


More information about the Python-Dev mailing list