Skip to content

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

19 lines (14 sloc) 0.403 kb
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)
Jump to Line
Something went wrong with that request. Please try again.