bslatkin / effectivepython

Effective Python: Second Edition — Source Code and Errata for the Book
https://effectivepython.com
2.2k stars 710 forks source link

Item 90: "Python 4" mentioned #92

Open jrib opened 3 years ago

jrib commented 3 years ago

Currently, "A better approach is to use from __future__ import annotations, which is available in Python 3.7 and will become the default in Python 4" is stated in the book.

Currently, pep-563 says, "In Python 3.10 this will become the default behavior. Use of annotations incompatible with this PEP is no longer supported". I think it used to say "Python 4" because Guido didn't like double-digit version numbers (?). Seems like that's changed however. The book should be updated to say "Python 3.10" instead of "Python 4".

bslatkin commented 3 years ago

Yes the PEP changed