# This file will help you understand pickle
# Please don't name this file pickle.py or else the import will try to
# import the file and not the Python library :-)
# This file will ONLY READ a pickled file
# the line below gets the file for us:
infile = open('my_pickled_file','rb')
# the line below assigns a variable "new_names" the contents of the pickled file.
new_names = pickle.load(infile)
# the line below simply prints the list we had defined in a previos file. Cool, huh?
# we close the file object, as we don't need to use it.