<div dir="ltr">That's discussed in this section: <a href="https://www.python.org/dev/peps/pep-0484/#compatibility-with-other-uses-of-function-annotations">https://www.python.org/dev/peps/pep-0484/#compatibility-with-other-uses-of-function-annotations</a> . The dict notation (which was proposed in an earlier thread on python-ideas) looks too messy to seriously support.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 16, 2015 at 11:38 AM, Stefan Behnel <span dir="ltr"><<a href="mailto:stefan_ml@behnel.de" target="_blank">stefan_ml@behnel.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Guido van Rossum schrieb am 16.01.2015 um 18:17:<br>
<span class="">> After a long editing process we've got PEP 484<br>
</span>> <<a href="https://www.python.org/dev/peps/pep-0484/" target="_blank">https://www.python.org/dev/peps/pep-0484/</a>> (Type Hints) ready for your<br>
> review.<br>
<br>
I can't see it mention interoperability with other usages of function<br>
annotations. I think the idea was that in this case, the type hints must be<br>
explicitly declared as such, e.g.<br>
<br>
    def func(x: {'type': str, 'wobble': 'off',<br>
                 'ctype': 'std::string[utf8]'}) -><br>
                                  {'type': str, 'wobble': 'sure'}:<br>
        return x + 'huhu'<br>
<br>
Stefan<br>
<br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)</div>
</div>