On Sun, 2004-12-05 at 21:41, Fredrik Lundh wrote: > > So, before I throw myself too deeply into this task, does this sound > > like something that's vaguely practical? All I'll really need to do is > > add a bunch of methods on the generated subclasses, so I'm hoping so... > > Lib/exceptions.c contains C code that creates class objects, and > populates them with methods. make a copy and hack it until it suits > your needs...
Thankyou for the pointer to that. I was looking around Objects/object.c but really not finding what I was after - I wouldn't have guessed what I was looking for would be in the exception code. Much appreciated. -- Craig Ringer -- http://mail.python.org/mailman/listinfo/python-list