• "Batteries-included" philosophy of Python


    "Batteries-included" philosophy

    python版本,含有丰富和多功能的标准库。

    不需要用户再去单独下载。

    https://www.python.org/dev/peps/pep-0206/#batteries-included-philosophy

    The Python source distribution has long maintained the philosophy of "batteries included" -- having a rich and versatile standard library which is immediately available, without making the user download separate packages. This gives the Python language a head start in many projects.

    However, the standard library modules aren't always the best choices for a job. Some library modules were quick hacks (e.g. calendar, commands), some were designed poorly and are now near-impossible to fix (cgi), and some have been rendered obsolete by other, more complete modules (binascii offers the same features as the binhex, uu, base64 modules). This PEP describes a list of third-party modules that make Python more competitive for various application domains, forming the Python Advanced Library.

    The deliverable is a set of scripts that will retrieve, build, and install the packages for a particular application domain. The Python Package Index now contains enough information to let software automatically find packages and download them, so the time is ripe to implement this.

    Currently this document doesn't suggest removing modules from the standard library that are superseded by a third-party module. That's difficult to do because it entails many backward-compatibility problems, so it's not worth bothering with now.

    Please suggest additional domains of interest.

    三方

    https://www.jianshu.com/p/eb89e75d8ad0

    Python有个哲学观:Batteries-included,从程序员的视角来看:Batteries-included指包含几乎所有可以用来实际干活儿的工具,不用再自己开发各种库了(不用造轮子)。
    Batteries-included具体体现在,Python不仅拥有丰富的标准库,还拥有数量巨大的第三方软件包,这些软件包托管在Python官方的代码库PyPI

    PyPI

    https://www.zhihu.com/question/24710451

    这个确实不太好翻译。Batteries included 这个词本意是指“自带电池”。在题目中这个语境的用法源自 Python 编程语言,指这个语言的官方发行版 CPython 自带了相当齐全的软件库,拿来就可以直接写程序,一般不需要再去安装额外的库,类似买一个电动玩具里面自带了电池一样,拆开后简单

  • 相关阅读:
    学习进度
    作业8:单元测试练习
    用户体验设计案例分析
    团队协作一
    需求分析
    结对编程——词频统计 2
    结对编程——词频统计
    个人项目-词频统计
    数组求和
    个人介绍和Github使用流程
  • 原文地址:https://www.cnblogs.com/lightsong/p/13964861.html
Copyright © 2020-2023  润新知