Coder Social home page Coder Social logo

停止支持 Python 2 about python-sdk HOT 3 OPEN

weakish avatar weakish commented on June 9, 2024 1
停止支持 Python 2

from python-sdk.

Comments (3)

weakish avatar weakish commented on June 9, 2024

gevent 21 又回过头把 python 2.7 的支持加回来了,然后同一份 requirments.txt 里也是可以根据 python 的版本不同指定不同的依赖。所以看起来 Python 2 还能继续支持一阵。

Arrow 说下一个版本将停止支持 Python 2.7 和 Python 3.5

Arrow 的下一个版本(1.0)已经在 2021 年 2 月发布,不支持 Python 2.7
Pendulum (功能类似 Arrow 的替代品)目前还支持 Python 2.7,未来可以考虑把 arrow 换成 Pendulum 如果还要继续支持 Python 2 的话。

from python-sdk.

weakish avatar weakish commented on June 9, 2024

另外贴一下统计数据,近 30 日云引擎 Python 运行时请求数:

  • 国际版:全是 Python 3
  • 华北节点:Python 2 占比约千分之一

from python-sdk.

weakish avatar weakish commented on June 9, 2024

未来可以考虑把 arrow 换成 Pendulum 如果还要继续支持 Python 2 的话。

换 Pendulum 也许还能解决 arrow 在 Windows 平台上不支持负的 unix 时间的问题 (工单 37855)

@pytest.mark.skipif(
    os.name == "nt", reason="negative timestamps are not supported on Windows"
)

from python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.