[Tutor] definition of a library

Erik Price erikprice@mac.com
Wed, 20 Mar 2002 21:41:12 -0500


On Wednesday, March 20, 2002, at 12:59  PM, alan.gauld@bt.com wrote:

> The good news is that regardless of whether a module is
> implemented in Python or in C you just import it and Python
> does the rest(provided you've installed it in the right
> place and told Python where to find it of course!)

Well, this has been an informative thread (and thanks to all), but this 
is really what I needed to hear!  I just wanted to make sure that I knew 
(1) which kinds of C libraries could be called from my python programs 
and (2) whether or not I had to do anything special.  The answer to 
those two questions, for newcomers to the thread, is that (1) certain 
kinds of C libraries (not just any library with C code) can be called 
from Python programs, and (2) you don't really have to do anything 
different from standard Python modules and libraries, just import them.


Thanks for the explanations, Python ninjas!

Erik