On 10 November 2017 at 16:42, Victor Stinner <victor.stin...@gmail.com> wrote: > I didn't follow the discussion on the PEP but I was surprised to read "from > __future__ import annotations" in an example. Annotations exist since Python > 3.0, why would Python 3.7 require a future for them? Well, I was aware of > the PEP, but I was confused anyway. > > I really prefer "from __future__ import string_annotations" !
At risk of complicating matters, I now see that this could be read as "annotations on strings", just as variable annotations are annotations on variable names, and function annotations are annotations on functions. If we decide we care about that possible misreading, then an alternative would be to swap the word order and use "from __future__ import annotation_strings". Cheers, Nick. P.S. I don't think this really matters either way, it just struck me that the reversed order might be marginally clearer, so it seemed worthwhile to mention it. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ 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