Differences between revisions 2 and 3
Revision 2 as of 2004-04-22 19:55:31
Size: 891
Editor: dsl254-010-130
Comment: Flying Pickle Alert! : Beware foreign Pickles.
Revision 3 as of 2004-04-22 19:58:25
Size: 1030
Editor: dsl254-010-130
Comment: Found an official pickle example.
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * [http://www.python.org/doc/current/lib/node64.html Official Pickle Use Documentation] - as usual, no example code :(  * [http://www.python.org/doc/current/lib/node64.html Official Pickle Use Documentation]
* [http://www.python.org/doc/current/lib/pickle-example.html Official Pickle Example]
Line 16: Line 17:
''Need some code here, when it's figured out.'' ''Need some simple code here, when it's figured out.''

''Should pickle a dictionary, list, and string. Simple simple simple.''

Using Pickle

Flying Pickle Alert!

Pickle files can be hacked. If you receive a raw pickle file over the network, don't trust it! It could have malicious code in it, that would run arbitrary python when you try to de-pickle it.

However, if you are doing your own pickle writing and reading, you're safe. (Provided no one else has access to the pickle file, of course.)

Code Example

Need some simple code here, when it's figured out.

Should pickle a dictionary, list, and string. Simple simple simple.

   1 # Relevant Python code
   2 class Something():
   3   pass
   4 
   5 x=Something()
   6 print x

Contributors

LionKimbro

Discussion

  • (none yet)

UsingPickle (last edited 2019-12-15 07:34:41 by FrancesHocutt)

Unable to edit the page? See the FrontPage for instructions.