This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients andreypopp, eric.araujo, exarkun, ods, pitrou, pje, r.david.murray, riffm
Date 2011-01-21.15:53:34
SpamBayes Score 9.6842186e-08
Marked as misclassified No
Message-id <1295625211.3681.15.camel@localhost.localdomain>
In-reply-to <1295624406.9.0.0482119953271.issue10935@psf.upfronthosting.co.za>
Content
> Implicit knowledge in your own head about what might or might not be a
> good idea to program is not the same thing as a specification.
> "type(x) is str" is a good specification in this context, while
> "string subclasses, but only if they're really str" does not.
> 
> And the reason why that is, is because the first specification allows
> server implementers to say, "your type is not str, so you are not
> conformant; go fix your code."   The second "specification" is just an
> invitation to (number of server implementations)*(number of string
> implementations) arguments about what conformance is.

You might argue about this all the way you want, but let me repeat it:
the interpreter already, implicitly, uses the "second specification" in
many of its internal routines (e.g. C implementations of stdlib
functions and types). Why do you think what is fine for the interpreter
and its stdlib is not fine for WSGI?

> Practicality beats purity, and explicit is better than implicit. 

And, ironically, you are arguing for a pure specification at the expense
of practicality. As for explicit/implicit, it isn't involved here: an
isinstance() test is as explicit as a type() equality test.
History
Date User Action Args
2011-01-21 15:53:37pitrousetrecipients: + pitrou, pje, exarkun, ods, eric.araujo, r.david.murray, riffm, andreypopp
2011-01-21 15:53:34pitroulinkissue10935 messages
2011-01-21 15:53:34pitroucreate