Curried class methods?

2006-08-16 Thread Scott Lamb
I'm trying to dynamically generate class methods which have access to some state passed in at creation time. (Basically as a workaround to twisted's trial not having a way to dynamically add stuff. Plain unittest seems to have TestSuite, but the trial runner doesn't know about it.) My first attemp

Re: Curried class methods?

2006-08-17 Thread Scott Lamb
Thanks, Antoon and Carl. Just tried your solutions - both work and are much cleaner than mine. -- http://mail.python.org/mailman/listinfo/python-list