Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > sublassing as a verb

Reply
Thread Tools

sublassing as a verb

 
 
davidj411
Guest
Posts: n/a
 
      06-20-2008
docs on urllib module say this about the FancyUrlOpener:
"class FancyURLopener( ...)

FancyURLopener subclasses URLopener providing default handling
for ..."

does that mean the FancyURLopener is a subclass of URLopener?
 
Reply With Quote
 
 
 
 
bruno.desthuilliers@gmail.com
Guest
Posts: n/a
 
      06-20-2008
On 20 juin, 22:34, davidj411 <(E-Mail Removed)> wrote:
> docs on urllib module say this about the FancyUrlOpener:
> "class FancyURLopener( ...)
>
> FancyURLopener subclasses URLopener providing default handling
> for ..."
>
> does that mean the FancyURLopener is a subclass of URLopener?


You could easily find out by yourself, you know ?-)

Python 2.5.1 (r251:54863, Apr 6 2008, 17:20:35)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from urllib import URLopener, FancyURLopener
>>> issubclass(FancyURLopener, URLopener)

True

 
Reply With Quote
 
 
 
 
Carl Banks
Guest
Posts: n/a
 
      06-21-2008
On Jun 20, 4:34*pm, davidj411 <(E-Mail Removed)> wrote:
> docs on urllib module say this about the FancyUrlOpener:
> "class FancyURLopener( ...)
>
> FancyURLopener subclasses URLopener providing default handling
> for ..."
>
> does that mean the FancyURLopener is a subclass of URLopener?


Yes. Anthimeria is very common in English.


Carl Banks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sublassing tuple works, subclassing list does not Frank Millman Python 5 03-31-2010 11:07 AM
The web serve has been locked down and is blocking the Debug verb Randy ASP .Net 0 03-29-2006 09:47 PM
The web serve has been locked down and is blocking the Debug verb. =?Utf-8?B?UmV6YSBTb2xvdWtp?= ASP .Net 3 11-24-2004 11:25 PM
Sublassing in C Dennis Kaarsemaker Python 2 08-15-2004 01:46 PM
HTTP error 405 for 'PUT' verb Kenneth Myhra ASP .Net 1 02-17-2004 11:42 PM



Advertisments