<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 11:11 AM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I believe you are saying, suppose I have a function that takes an integer argument and then JSON-encodes it and sends it to some server that requires a JSON int. Now suppose you are adding type hints to your code, and you add ": int" to the parameter under discussion. And now suppose you have a faulty caller which calls this function with the argument set to True. This program will type-check correctly, because True is a bool which is a subclass of int, but it will run incorrectly, because (under this assumption) True will be converted to a JSON true value, which the server rejects.</blockquote></div><br>This is much better phrased than what I had written, thanks :) I'll be watching the Github issue.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thank you to everyone that replied. My impression is that the rationale in PEP 285 still holds strong.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>