How do I use the Proxy recipe ?

2007-12-21 Thread English, Mark
The proxy recipe http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252151 (*) by Goncalo Rodrigues shows how to wrap an existing instance of a new or old style class in a Proxy instance. I'm just wondering what a programmer does once that's been achieved ? Is he or she supposed to patch the

operator module isSequenceType with builtin set produces False

2007-12-18 Thread English, Mark
X-Replace-Address: [EMAIL PROTECTED] receding_xxxs_.com This wasn't what I was expecting, so I thought I'd ask those more knowledgeable, which is pretty much everybody. Same result on Python 2.3.5 and Python 2.5.1 installed from python.org binaries on Windows XP. try: set except NameError:

Re: Convert obejct string repr to actual object

2007-10-15 Thread English, Mark
X-Replace-Address: [EMAIL PROTECTED] On 12 Oct, 18:14, Carsten Haese [EMAIL PROTECTED] wrote: On Fri, 2007-10-12 at 17:41 +0100, English, Mark wrote: From: Tor Erik Sønvisen Date: October 8th 2007 I've tried locating some code that can recreate an object from it's string

Re: Convert obejct string repr to actual object

2007-10-12 Thread English, Mark
From: Tor Erik Sønvisen Date: October 8th 2007 I've tried locating some code that can recreate an object from it's string representation... On a related note I've wondered about this: class Foo(object): pass f = Foo() s = repr(f) s '__main__.Foo object at 0x007CBAB0' So how do I get f