Re: Anonymous Classes

2007-07-12 Thread Lachlan Gunn
Thanks for your help. After trying your suggestion for a while, I eventually realised that SQLObject was doing something funny in its metaclass that was causing the issue, which I got around by mangling the class names with a counter. -- http://mail.python.org/mailman/listinfo/python-list

Anonymous Classes

2007-07-12 Thread Lachlan Gunn
Hello. I have a library (SQLObject) that stores data as class variables. I would like to set a class variable in a certain context, specific to a certain instance of an object. This would require some sort of anonymous class. I have attempted to use the following code to set the connection stri