[Python-Dev] PEP 362 Third Revision (original) (raw)
Ethan Furman ethan at stoneleaf.us
Thu Jun 14 21:12:57 CEST 2012
- Previous message: [Python-Dev] PEP 362 Third Revision
- Next message: [Python-Dev] PEP 362 Third Revision
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 isargs etc is cleaner to use when doing a comparison:
if param.isarg: 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
- Previous message: [Python-Dev] PEP 362 Third Revision
- Next message: [Python-Dev] PEP 362 Third Revision
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]