Re: why () is () and [] is [] work in other way?

2012-04-20 Thread john . tantalo
On Friday, April 20, 2012 12:34:46 PM UTC-7, Rotwang wrote: > I believe it says somewhere in the Python docs that it's undefined and > implementation-dependent whether two identical expressions have the same > identity when the result of each is immutable I was curious where that might be on my

parameterized classes

2008-07-24 Thread John Tantalo
Is there is a better way to create parameterized classes than defining and returning a class in a closure? I ask because I want to create arbitrary BaseRequestHandler subclasses that delegate line handling to a given line handler, as in this example: from SocketServer import * class Th