Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (14 sloc) 0.403 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
from pickle import load, dump

class Conference(object):
    def __init__(self, name, year):
        self.name = name
        self.year = year
    def title(self):
        return self.name.capitalize()

if __name__ == '__main__':
    f = open('data.pck', 'rb')
    pycon = load(f)
    print pycon.title(), pycon.year
    pycon.year = 2012
    out = open('data.pck', 'wb')
    dump(pycon, out)
    
    
Something went wrong with that request. Please try again.