Python Style Question

Lothar Scholz llothar at web.de
Mon May 19 14:03:35 EDT 2003


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"


When i look at the code i must not go through an extra indirection to
recognize what is done there and more important the first code style
can't be handled by static code analysers very well.




More information about the Python-list mailing list