<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jan 17, 2015 at 1:58 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"><span class="">
</span>BTW, I think namespaces naturally fix this issue. If all of the proposed<br>
type system lives either in the builtin namespace or in the "typing"<br>
module, then annotations and type hints from any other module namespace<br>
MUST simply be ignored by tools that don't understand them, and are also<br>
easy to ignore. Then you could write "x: typing.List[<a href="http://cython.int" target="_blank">cython.int</a>]", and<br>
static type checkers could still validate that all input for "x" is a list<br>
(of some unknown item type), and Cython could enforce that anything coming<br>
out of such a list at runtime can coerce to a C "int".<br clear="all"></blockquote><div><br></div><div>As I responded to your previous message, I think this can indeed be solved very elegantly by providing a stub module for cython that equates <a href="http://cython.int">cython.int</a> with typing.Any.<br></div></div><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)</div>
</div></div>