sublassing as a verb

bruno.desthuilliers at gmail.com bruno.desthuilliers at gmail.com
Fri Jun 20 22:47:44 CEST 2008


On 20 juin, 22:34, davidj411 <davidj... at gmail.com> 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




More information about the Python-list mailing list