[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?
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
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
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
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