Re: How to copy an instance without its cStringIO.StringO item ?

2009-02-09 Thread John Machin
On 9/02/2009 8:51 PM, Barak, Ron wrote: Hi John, Thanks for the suggestion. What I do now in preparation for pickling is: for_pickle_log_stream = LogStream(sac_log_file) for key in log_stream.__dict__: if key != "input_file": for_

RE: How to copy an instance without its cStringIO.StringO item ?

2009-02-09 Thread Barak, Ron
Machin [mailto:sjmac...@lexicon.net] Sent: Sunday, February 08, 2009 23:04 To: python-list@python.org Subject: Re: How to copy an instance without its cStringIO.StringO item ? On Feb 9, 1:01 am, Christian Heimes wrote: > Barak, Ron schrieb: > > > Hi, > > > I need to copy an insta

Re: How to copy an instance without its cStringIO.StringO item ?

2009-02-08 Thread John Machin
On Feb 9, 1:01 am, Christian Heimes wrote: > Barak, Ron schrieb: > > > Hi, > > > I need to copy an instance of a class, where one of the items in the > > original is a cStringIO.StringO object. > > I do not need the cStringIO.StringO in the target object. > > The target instance is to be pickled.

Re: How to copy an instance without its cStringIO.StringO item ?

2009-02-08 Thread Gabriel Genellina
En Sun, 08 Feb 2009 14:17:34 -0200, Barak, Ron escribió: I need to copy an instance of a class, where one of the items in the original is a cStringIO.StringO object. I do not need the cStringIO.StringO in the target object. The target instance is to be pickled. [...] for_pickle_

Re: How to copy an instance without its cStringIO.StringO item ?

2009-02-08 Thread Christian Heimes
Barak, Ron schrieb: > Hi, > > I need to copy an instance of a class, where one of the items in the original > is a cStringIO.StringO object. > I do not need the cStringIO.StringO in the target object. > The target instance is to be pickled. > > Googling made me devise the following plan: do a de