This API has been defined to encourage similarity between the Python modules that are used to access databases. By doing this, we hope to achieve a consistency leading to more easily understood modules, code that is generally more portable across databases, and a broader reach of database connectivity from Python.
摘自PEP-249 introduction:
PEP,即Python增强建议,就是:建议(参见PEP-1)。在本例中,它是一个针对数据库库的标准“规范”API设计方案。它不一定是一部“土地法”,而是为制作此类API的人提供参考
社区已经走到一起,决定想出一些共同的想法,并把它作为一种激励。政治公众人物被接受了,现在它将被视为一种标准
是否遵循此标准取决于每个特定库的维护人员。这完全是开发者之间的协议问题
相关问题 更多 >
编程相关推荐