Errata

Think Python

Errata for Think Python

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page page 170
Where it says: "for key in db: print(key, db[key])"

You CANNOT loop using the following code "for key in db: print(key, db[key])". The correct code is "for key in db.keys(): print(key, db[key])". See https://stackoverflow.com/questions/61506573/why-am-i-getting-typeerror-gdbm-gdbm-object-is-not-iterable

Anonymous  Apr 20, 2022