#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    10
    Rep Power
    0

    Pickle help! Classes


    Hello, I want to write a class to a file useing pickle, I search the web and spend hours trying to "pickle.dump" it, but it doesnt work! why? After that i want to load it, but I can't even imagine the problems I will get there! Please give me some tips!
  2. #2
  3. JavaScript is not spelt java
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2011
    Location
    Landan, England
    Posts
    743
    Rep Power
    165
    You'll need to show some code.

    What error message do your receive?
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    588
    Rep Power
    64
    To do this you need to pickle the instance of the class and your receiving program has to contain the matching class.
    Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25

IMN logo majestic logo threadwatch logo seochat tools logo