Basic Python Tutorial 26 – Pickles and Shelves

Home/Programming Video Tutorials/Python Video Tutorials/Basic Python Tutorial 26 – Pickles and Shelves

Basic Python Tutorial 26 – Pickles and Shelves

FavoriteLoadingAdd to favorites

Learn how to handle data such as lists and dictionaries that you can not normally do with just reading and writing.

Investary Website — http://www.investary.org

Twitter – http://www.twitter.com/investary

Facebook – http://www.facebook.com/investary
Questions, comments, feedback? Leave it in the comments section.
Also if you can please subscribe and like this video, it will help me tremendously.

By | 2017-06-20T03:22:05+00:00 June 20th, 2017|Python Video Tutorials|9 Comments

9 Comments

  1. Kai Hup June 20, 2017 at 3:24 am - Reply

    Hi, First of all. Very nice and clear tutorials. I have a question about shelve. Can you tell me how the pickles2.dat file is encoded? The program i use (PyCharm) has a problem with it and i can’t solve it when i don’t no the encoding type.

  2. investary June 20, 2017 at 3:38 am - Reply

    You are correct! I was wrong about that. Thanks for the info!

  3. Deadpankan June 20, 2017 at 3:38 am - Reply

    LOVE your vids I totally get it now.!!

    What software do you use to record your videos and and the audio?

  4. nick187able June 20, 2017 at 3:48 am - Reply

    Can you please explain more about what is the purpose of pickle and shelve. 
    I do not quite understand what they do and what are they used for. 
    Thank you 

  5. AlexanderMccarthey87 June 20, 2017 at 3:52 am - Reply

    I’ve been having a problem with the shelve module I get an error saying that "db type could not be determined" every time I make the shelve object set to open()

  6. MegaZenon1 June 20, 2017 at 3:53 am - Reply

    Of coarse you can see whats inside… It doesn’t matter if it’s ".dat" or ".txt", you can open it with notepad…

  7. johnliamten June 20, 2017 at 3:57 am - Reply

    va RYE uh tee

  8. Arnold van der Meulen June 20, 2017 at 3:57 am - Reply

    in Python 3 and above:

    use pickle instead of cPickle
    use for reading and writing:     rb and wb

    Writing:
    pickle_file = open("pickles1.dat", "wb")

    Reading:
    pickle_file = open("pickles1.dat", "rb")

  9. Rahul Singh June 20, 2017 at 4:09 am - Reply

    Hi, I have a doubt. We dumped variety and shape lists in picles.dat file using pickle. While loading, how does python loads the variety to variety variable and shape to shape variable as we have not specified that anywhere

Leave A Comment

*