BBS水木清华站∶精华区
发信人: kafa (staring at the sun), 信区: Linux
标 题: Python的长处:胶水
发信站: BBS 水木清华站 (Sun Nov 19 13:56:56 2000)
From comp.lang.python
----------------------
Dear Daniel,
One of Python's greatest assets is that it is largly agnostic.
It is easy to glue python to libraries written in C, C++, or
other languages that produce a dynamically shared object file.
On windows these are called ".DLL" and under unix ".so"
Because python plays well with others, people who use it tend to
gravitate towards creating bindings for the "best-in-class" solutions,
rather than trying to reinvent the weel again and again.
The best example of this is the Tk GUI toolkit.
This graphics library was well written and did a fine job.
Rather than be zealots and require python have its own python-based GUI,
people embraced an effective solution and adapted it to serve the
python community.
So a lot of python is written in python. I learned most of what I know
from browsing the on-line documentation and reading the files in
/usr/lib/python1.5
When I'm using a module based on an shared object file, I have to read
the
documentation more carefully since I can't fall back on the source.
A lot what makes python useful is written in other languages as well,
but I'm ususally greatful to have bindings to the robust library code of
an industry-standard solution rather than a rickety clone of an existing
solution.
-pehr
----------------------
--
风来疏竹,风去而竹不留声
雁渡寒潭,雁去而潭不留影
※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.64.211]
BBS水木清华站∶精华区