[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
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?
>>
>>
> I'm not a guru, but... I think that modules ar
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 python source file, but usually re
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 that live inside
the Python language. I
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