zoukankan      html  css  js  c++  java
  • "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 自带了相当齐全的软件库,拿来就可以直接写程序,一般不需要再去安装额外的库,类似买一个电动玩具里面自带了电池一样,拆开后简单

  • 相关阅读:
    微信企业号-上传、获取临时素材文件
    微信企业号-身份验证
    【转】android 电池(三):android电池系统
    【转】android 电池(二):android关机充电流程、充电画面显示
    【转】android 电池(一):锂电池基本原理篇
    【转】android 物理按键
    【转】android 电容屏(三):驱动调试之驱动程序分析篇
    【转】android 电容屏(二):驱动调试之基本概念篇
    【转】android 电容屏(一):电容屏基本原理篇
    名言警句
  • 原文地址:https://www.cnblogs.com/lightsong/p/13964861.html
Copyright © 2011-2022 走看看