AskReference
ExplanationIntermediate

Why does the author recommend using at least Python 3.9 instead of just the minimum required version?

The author recommends using at least Python 3.9 because it will have a longer support lifetime than the minimum required version, Python 3.7.

The author states that the bare minimum is Python 3.7 because it includes type hints and asyncio, which are core requirements for FastAPI. However, the author recommends Python 3.9 instead because it will have a longer support lifetime, making it a better choice for ongoing maintenance and security updates.

Key points

  • Python 3.7 is the bare minimum because it provides type hints and asyncio.
  • Python 3.9 is recommended because it will have a longer support lifetime.
  • The longer support lifetime is the stated reason for preferring 3.9 over 3.7.
Source:FastAPI: Modern Python Web Development· Modern Python· p. 31–40

Related questions

Cover of FastAPI: Modern Python Web Development

FastAPI: Modern Python Web Development

Bill Lubanovic;

First Edition · O'Reilly Media, Inc.

View this ebook