Python Style Question

Dan Bishop danb_83 at yahoo.com
Mon May 19 20:24:56 EDT 2003


llothar at web.de (Lothar Scholz) wrote in message news:<6ee58e07.0305191003.395d1b3a at posting.google.com>...
> In the python windows library i find a lot of code like the following:
> 
> TypeBrowseDialog_Parent=dialog.Dialog
> class TypeBrowseDialog(TypeBrowseDialog_Parent):
> 	"Browse a type library"
> 
> where is here the advantage over the easier and much more normal way
> to do things:
> 
> class TypeBrowseDialog(dialog.Dialog):
> 	"Browse a type library"

The only advantage I can think of is that the first way makes it
easier to change the base class of TypeBrowseDialog.  I don't know why
you'd want to do that, though.




More information about the Python-list mailing list