Re: Difference between a library and a module...

2006-03-07 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I'm not 100% sure what is a library in python. Technically, nothing. > > string.replace() I'm 90% sure is a function in the string module. it is. > However something like this: > foo = "bar" > foo.Capitalize() s/C/c/ > bar.capitalize is a method. ...which is usu

Re: Difference between a library and a module...

2006-03-07 Thread Bruno Desthuilliers
Laszlo Zsolt Nagy a écrit : > sophie_newbie wrote: > >> OK this might seem like a retarded question, but what is the difference >> between a library and a module? >> >> If I do: >> >> import string >> >> am I importing a module or a library?

Re: Difference between a library and a module...

2006-03-07 Thread bruno at modulix
sophie_newbie wrote: > OK this might seem like a retarded question, Better to look like an ignorant than to stay one !-) > but what is the difference > between a library and a module? Python only defines 'modules' and 'packages'. A module can technically be any py

Re: Difference between a library and a module...

2006-03-07 Thread Laszlo Zsolt Nagy
sophie_newbie wrote: >OK this might seem like a retarded question, but what is the difference >between a library and a module? > >If I do: > >import string > >am I importing a module or a library? > > I'm not a guru, but... I think that modules are things th

Re: Difference between a library and a module...

2006-03-07 Thread [EMAIL PROTECTED]
I'm not 100% sure what is a library in python. Your example above is importing a module. Someone else can correct me, but I use libraries to refer to underlying c/c++ code that is required for the python modules to function. So in pure python you are really only dealing with modules. string.rep

Difference between a library and a module...

2006-03-07 Thread sophie_newbie
OK this might seem like a retarded question, but what is the difference between a library and a module? If I do: import string am I importing a module or a library? And if i do string.replace() am I using a module or a function or a method or what? Sorry. -- http://mail.python.org/mailman