Inheritance in nested classes

Martin Skou msj at infoserv.dk
Tue Nov 15 10:37:02 EST 2005


I'm experimenting with using Python for a small web interface, using
Mark Hammond's nice win32 extensions.

I use a small class hierarchy which uses inheritance and nested classes.

Here are a small extract of the code:

class page:
	
	def __init__(self):
		self.head=[]
	
	def __str__(self):
		...

	class simple_tag:
		...	
	
	class p(simple_tag):
		...
	
	class table:
		...

		class row:
			...
				
			class data:
				...
	...


Will this type of code perform noticable slower than unnested classes?

I'm using the Active Server Pages integration in the win32 extensions,
does anyone have good/bad experiences using this interface?

Thanks.

/Martin




More information about the Python-list mailing list