[Tutor] cPickle/pickle help

b. nyec bnyec at yahoo.com
Wed Apr 4 20:24:46 CEST 2012



--- On Wed, 4/4/12, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:

> From: Mark Lawrence <breamoreboy at yahoo.co.uk>
> Subject: Re: [Tutor] cPickle/pickle help
> To: tutor at python.org
> Date: Wednesday, April 4, 2012, 1:16 PM
> On 04/04/2012 18:25, b. nyec wrote:
> > Hello,
> >
> > I'm not sure if this is the correct list to post this
> on, but i was wondering i someone could help me. I'm
> wondering if there exists a pickler example written in C ? I
> understand the cPickle module was written in C, but looking
> at it seems daunting to create sample code from it. I found
> a post on this list here: http://mail.python.org/pipermail//tutor/2011-September/085414.html
> that shows an example of pickling data to disk. I'm
> wondering if that's pickle or cPickle (protocol version?) ??
> What i'm trying to do is write a client in C that will send
> pickled data to a server written in python for unpicking
> over TCP. I'm still learning this stuff
> (pickle/serialization) as i go (i have zero knowledge of
> python), so apologies if i'm not making any sense as i've
> had trouble finding help on other
> >   places when explaining what i'm trying
> to accomplish. If this is off topic, feel free to e-mail me
> privately and i could explain in more detail without adding
> noise to
> >   this list.
> >
> > Thanks for any help.
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > To unsubscribe or change subscription options:
> > http://mail.python.org/mailman/listinfo/tutor
> >
> 
> You're probably better off asking on comp.lang.python but
> the advice 
> will almost certainly be don't do it see e.g. 
> http://www.velocityreviews.com/forums/t944852-re-re-advise-of-programming-one-of-my-first-programs.html
> 
> -- 
> Cheers.
> 
> Mark Lawrence.
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
> 

Yep I'm fully aware of the ol "Validate user input" security 101 with pickle. :) Looking around the last few days for help, is point more and more to a project i didn;t quite intend on taking up. Oh well. 
Thanks. 




More information about the Tutor mailing list