Oops formatting got mucked up. Should be def pickledobjects(f): try: while True: yield pickle.load(f) except EOFError: pass
objs = list(pickledobjects(file("fi")))
_______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers