Style question: 'return None' vs 'pass' in do-nothing methods?

Elf M. Sternberg elf at drizzle.com
Tue Jan 8 14:04:54 EST 2002


	I'm using Webware for a project and noticed that in version 0.6 
Chuck finally included support for cascading style sheets.  I had put my 
own support into the project I was working on, and I notice that there 
seems to be a stylistic difference between what he did and what I did.  
For pages that don't need it (such as redirects), I defined it as:

def stylesheet(self):
	return None

Whereas Webware used:

def writeStyleSheet(self):
	pass

	Is there a reason for favoring one over the other?

		Elf

-- 
Elf M. Sternberg, Immanentizing the Eschaton since 1988
http://www.drizzle.com/~elf/       (under construction)

I have seen the light.  I was not impressed.




More information about the Python-list mailing list