On Wed, Sep 7, 2016 at 4:11 AM, Stephen J. Turnbull
<turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> Finally, the notion of annotating expressions is incoherent:
>
>     # Annotating (sub)expressions: the more the merrier!
>     (x) : bool = (((y): int + (z): float) / (w): complex): quarternion
>     # Ooh, an expression with no past and no future.  Annotate it!
>     (y + z) / w: quarternion

Can't do that - parsing would become ambiguous.

x = {1:int, 1.5:float, 2+3j:complex}
print(type(x))

ChrisA
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to