Skip to content

停止支持 Python 2 #504

Description

@weakish
  1. Python 2 已于 2020 年 1 月 1 号 EOL;未来 Python 3.10 还会移除一些兼容 Python 2 的特性
  2. SDK 用的依赖也逐渐开始停止支持 Python 2,比如 gevent 1.5 官方说不支持 python 3.8 的(不过目前在 3.8 下跑单元测试能跑过,但不确定会不会有边角问题),而支持 3.8 的 gevent 20 又不支持 python 2.7;Arrow 说下一个版本将停止支持 Python 2.7 和 Python 3.5

所以未来如果要继续支持 Python 2 的话,会越来越麻烦,可能很多地方都要写两份代码(其实现在 SDK 有些地方就已经是这么做了,未来随着依赖库逐渐抛弃 Python 2,这样的分支会越来越多,增加维护的难度),云引擎那边也要修改,根据 Python 版本选择不同的依赖文件(比如 requirements-py2.txt 之类)。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions