[python-chinese] 到底是CPAN方式的类库好还是Python的Battery Charged方式的好?

2 views
Skip to first unread message

shhgs

unread,
Dec 28, 2005, 8:44:30 PM12/28/05
to python-...@lists.python.cn
CPAN上提供了大量的类库,也方便用户发布类库。CPAN是Perl最大的亮点。

不过Python的Battery Charged方式的标准类库也有自己的优势。代码质量高,不用担心升级和维护。用它搞开发比较放心。但缺点是不容易共享。

所以我很困惑,到底是CPAN方式的类库管理好还是Battery Charged方式的好。

limodou

unread,
Dec 28, 2005, 8:52:09 PM12/28/05
to pyth...@googlegroups.com
在 05-12-29,shhgs<shhgs....@gmail.com> 写道:

> CPAN上提供了大量的类库,也方便用户发布类库。CPAN是Perl最大的亮点。
>
> 不过Python的Battery Charged方式的标准类库也有自己的优势。代码质量高,不用担心升级和维护。用它搞开发比较放心。但缺点是不容易共享。
>
> 所以我很困惑,到底是CPAN方式的类库管理好还是Battery Charged方式的好。
>

什么叫 "Battery Charged方式" 不理解,先解释下。

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

kebo wang

unread,
Dec 28, 2005, 9:05:56 PM12/28/05
to pyth...@googlegroups.com
On 12/29/05, limodou <lim...@gmail.com> wrote:
> 什么叫 "Battery Charged方式" 不理解,先解释下。

Battery Included?
是指包含了常用的库?

--
Best Regards,mep

limodou

unread,
Dec 28, 2005, 9:15:07 PM12/28/05
to pyth...@googlegroups.com
2005/12/29, kebo wang <kebo...@gmail.com>:

> On 12/29/05, limodou <lim...@gmail.com> wrote:
> > 什么叫 "Battery Charged方式" 不理解,先解释下。
>
> Battery Included?
> 是指包含了常用的库?
>

perl 安装好好象也有一些库,难道不叫标准库吗?

kebo wang

unread,
Dec 28, 2005, 9:34:07 PM12/28/05
to pyth...@googlegroups.com
On 12/29/05, limodou <lim...@gmail.com> wrote:
> perl 安装好好象也有一些库,难道不叫标准库吗?

摘自PEP 206:

> 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.

这里也有一些解释:
http://web.archive.org/web/20001013152452/http://sunworld.com/swol-12-1998/swol-12-regex.html

--
Best Regards,mep

Reply all
Reply to author
Forward
0 new messages