[New-bugs-announce] [issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default before Python 4.0

STINNER Victor report at bugs.python.org
Sun Oct 27 12:07:10 EDT 2019


New submission from STINNER Victor <vstinner at python.org>:

The PEP 563: Postponed evaluation of annotations was introduced an opt-in feature using "from __future__ import annotations". It is scheduled to become the default in Python 4.0.

I would prefer to limit the number of incompatible changes in Python 4.0: it should just a "regular" release, with a regular number of incompatible changes. The version number change is going to cause enough troubles...

Would it be possible possible to enable postponed evaluation of annotations either before or after Python 4.0? For example, can we imagine to enable it by default in Python 3.9? If not, what about Python 3.10?

See also the PEP 608 (Coordinated Python release) and bpo-38604 (Schedule Py_UNICODE API removal).

----------
components: Library (Lib)
messages: 355476
nosy: lukasz.langa, vstinner
priority: normal
severity: normal
status: open
title: [typing] PEP 563: Postponed evaluation of annotations: enable it by default before Python 4.0
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38605>
_______________________________________


More information about the New-bugs-announce mailing list