Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1 other subscriber

No Comments

  1. pickling python objects | ferretfarmer
    September 18, 2013 @ 4:16 pm

    […] seethesource talks about storing and loading python dictionaries from disk. his sample code was easy to read, but, after some thinking, seems incomplete (for example, the storing function assumes we’re only storing string elements to disk; there are likely unicode formatting related problems for strings; etc…). […]

    Reply

    • akshayhpai94
      September 18, 2013 @ 4:25 pm

      yes, i know that the technique requires more optimization. But due to my requirements being basic , i used this to fullfill my needs. But thank you for the opinion.

      Reply

      • ferretfarmer
        November 7, 2013 @ 11:38 pm

        I saw that you solved a less general problem, in a way that’s easier to read.

        It’s cool that you found a way to explain things clearly; reading the post was fun, and seeing your solution inspired me to try and ignore the ease of reading/explanation, and try to correctly solve the more general problem.

        I haven’t thought about optimizations yet – I tried to solve the problem more generally; maybe I’ve accidentally solved it more efficiently, too?

        Reply

  2. akshay pai
    November 8, 2013 @ 2:52 am

    yes, for sure pickling of the data is more efficient and the example you have given shows it all, but when the data is picked, if im not wrong its not in human readable form, right? so if anyone would like to store in a way its in human readable form , then have you found out any other way to store it?
    coz pickled data has to be unpickled to see the contents in that file. But i must agree that for a general case pickling is very efficient for storing data onto a disk.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *