[03:10:47] ** bitmvnch has left IRC (sterling.freenode.net irc.freenode.net) [03:11:36] ** bitmvnch has joined us [05:02:29] [connected at Tue Sep 26 05:02:29 2006] [05:02:30] <> *** Looking up your hostname... [05:02:30] <> *** Checking ident [05:02:30] <> *** No identd (auth) response [05:02:30] <> *** Found your hostname [05:02:30] <> *** Your host is sterling.freenode.net[freebsd.widexs.nl/6667], running version hyperion-1.0.2 [05:02:30] [I have joined #peak] [06:24:26] ** apoirier has joined us [06:26:09] ** apoirier has left IRC (Client Quit) [11:01:57] ** coderanger_ has joined us [12:12:45] ** pje has joined us [12:21:48] ** apoirier has joined us [12:25:25] Hi. I've got a problem when I pickle a peak.util.proxies. Only the __subject__ is pickled, not the proxy+__subject__ [13:08:22] Hm. Interesting. :) [13:08:45] I guess I did too good of a job there. :) [13:09:09] Probably it needs a __reduce__ in the proxy class [13:10:06] Use a Wrapper and give it a __reduce__ method [13:10:32] eep, that won't work either. [13:10:37] Hm. Interesting. :) [13:14:18] okay, apoirier, here's what you do: register a reducing function with copy_reg.pickle() [13:14:29] for the specific proxy type you want pickled. [13:15:41] Yes, I just did it [13:16:25] No more error now [13:18:04] But now it seems every unpickle return the object in the state of its first pickle. Strange [13:23:51] pickle always saves a snapshot of state at a single point in time [13:24:09] multiple references to the same object (or in this case, proxy) resolve to the same unpickled object [13:25:31] ok [14:35:07] ** apoirier has left IRC ("KVIrc 3.2.0 'Realia'") [14:45:14] pje is now known as pje_afk [15:44:50] pje_afk is now known as pje [17:54:33] ** coderanger_ has left IRC (Read error: 110 (Connection timed out)) [18:57:11] ** ErikRose has left IRC () [21:53:57] ** pje has left IRC ("Client exiting")