[Python-Dev] PEP 362 Third Revision

Ethan Furman ethan at stoneleaf.us
Thu Jun 14 21:12:57 CEST 2012


Alexandre Zani wrote:
> I don't think it really breaks TOOWTDI because you're talking about
> two use-cases. In one case, you're checking if something is a
> particular kind of parameter. In the other case, you're doing some
> sort of dict-based dispatch. I also think is_args etc is cleaner to
> use when doing a comparison:
> 
> if param.is_arg:
> 
> vs
> 
> if param.kind == param.ARG:

+1


> That said, it's not a huge deal and so I won't push this any more than
> I already have.

ditto

~Ethan~


More information about the Python-Dev mailing list