[Python-Dev] PEP 563: Postponed Evaluation of Annotations

Lukasz Langa lukasz at langa.pl
Mon Nov 20 12:59:25 EST 2017


See my response to Mark's e-mail. I agree that special-casing outermost strings is not generic enough of a solution and will be removing this special handling from the PEP and the implementation.

- Ł

> On Nov 19, 2017, at 2:38 PM, Koos Zevenhoven <k7hoven at gmail.com> wrote:
> 
> On Mon, Nov 13, 2017 at 11:59 PM, Brett Cannon <brett at python.org <mailto:brett at python.org>> wrote:
> ​[..]​
> On Sun, Nov 12, 2017, 10:22 Koos Zevenhoven, <k7hoven at gmail.com <mailto:k7hoven at gmail.com>> wrote:​​
> 
> There's two thing I don't understand here:
> 
> * What does it mean to preserve the string verbatim? No matter how I read it, I can't tell if it's with quotes or without.
> 
> Maybe I'm missing some context.
> 
> I believe the string passes through unchanged (i.e. no quotes). Think of the PEP as simply turning all non-string annotations into string ones.
> 
> 
> ​Ok, maybe that was just wishful thinking on my part ;-).
> 
> More info in the other threads, for example:
> 
> https://mail.python.org/pipermail/python-dev/2017-November/150642.html <https://mail.python.org/pipermail/python-dev/2017-November/150642.html>
> https://mail.python.org/pipermail/python-dev/2017-November/150637.html <https://mail.python.org/pipermail/python-dev/2017-November/150637.html>
> 
> -- Koos
> 
> 
> --
> + Koos Zevenhoven + http://twitter.com/k7hoven <http://twitter.com/k7hoven> +
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/lukasz%40langa.pl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171120/177ef38d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171120/177ef38d/attachment.sig>


More information about the Python-Dev mailing list