Hi Saju Thanks for helping the oop challenged
regards Hrishy --- On Thu, 11/12/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Subject: Re: Equivalent of 'wget' for python? > To: python-list@python.org > Date: Thursday, 11 December, 2008, 10:41 AM > On Dec 11, 3:36 pm, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> > wrote: > > On Dec 11, 2:36 pm, hrishy > <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > > Please excuse my OOP but is my understanding > correct > > > > > > urllib.urlretrieve(url_of_zip_file,destination_on_local_filesystem) > > > > > is urllib --->Static Class on which the method > urlretrieve method is invoked ? > > > > No urllib is a "method". Use type(obj) to > find out what python thinks > > typo c/method/module > > > the "type" of that object is. Note that > "object" here is not meant in > > the same sense as the OOP definition. > > > > > > > > > In that case what does the python 3.0 version > mean > > > > > import urllib.request > > > urllib.request.urlretrieve(url, local_file_name) > > > > > urllib -->static class > > > request -->method > > > urlretrieve--> what is this then ? > > > > A 'function'. urllib.request.urlretrieve is > the fully qualified name > > of the function urlretrieve. In other words > urlretrieve lives in the > > urllib.request namespace. > > > > -srp > > > > > > > > > regards > > > Hrishy > > > > > --- On Mon, 8/12/08, Jerry Hill > <[EMAIL PROTECTED]> wrote: > > > > > > From: Jerry Hill > <[EMAIL PROTECTED]> > > > > Subject: Re: Equivalent of 'wget' > for python? > > > > To: [EMAIL PROTECTED] > > > > Date: Monday, 8 December, 2008, 5:54 PM > > > > On Mon, Dec 8, 2008 at 11:53 AM, r0g > > > > <[EMAIL PROTECTED]> wrote: > > > > > urllib.urlretrieve(url_of_zip_file, > > > > destination_on_local_filesystem). > > > > > > In python 3.0, that appears to be: > > > > > > import urllib.request > > > > urllib.request.urlretrieve(url, > local_file_name) > > > > > > -- > > > > Jerry > > > > -- > > > > >http://mail.python.org/mailman/listinfo/python-list > > > > > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list