Head first python

Page 173

persistence

Generic file I/O with pickle is the way to go!

Now, no matter what data you create and process in your Python programs, you have a simple, tested, triedand-true mechanism for saving and restoring your data. How cool is that?

Python takes care of your file I/O details, so you can concentrate on what your code actually does or needs to do. As you’ve seen, being able to work with, save, and restore data in lists is a breeze, thanks to Python. But what other data structures does Python support out of the box? Let’s dive into Chapter 5 to find out. you are here 4

137


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.