Python proper on Linux, `.a' vs `.so'

Moshe Zadka m at moshez.org
Thu Jun 5 00:48:48 EDT 2003


On 04 Jun 2003, Francois Pinard <pinard at iro.umontreal.ca> wrote:

> Since the original C programs executables are not so big, less than 100K
> each (relying on installed shared libraries -- of course), I feel that
> the idea of using Python modules from within C applications would "sell"
> better if it was not blatantly bloating the size of executable files.

Many people have already answered on the "how", but I want to concentrate
on the "why".
If you are already taking the "Python hit", meaning an assumption that
Python is installed on your target system, would it not be easier to
write the program in Python? If it needs optimization, you can write
a *module* in C which does whatever you want to. In other words, I'm
not certain "selling" Python as a C library is missing an important point --
namely, that it is easier to write Python code than C code.  
-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/





More information about the Python-list mailing list