891
Comment: Flying Pickle Alert! : Beware foreign Pickles.
|
1030
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
[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]
[http://www.python.org/doc/current/lib/module-pickle.html Official Pickle Module Documentation]
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.
Contributors
Discussion
- (none yet)