example-code-2e/03-dict-set
2020-02-18 23:58:03 -03:00
..
support update from Atlas with major reorg 2015-04-17 21:29:30 -03:00
03-dict-set.ipynb ch03: wip 2019-11-26 12:17:40 -03:00
dialcodes.py ch03: update from book draft 2020-02-18 23:58:03 -03:00
index0.py ch03: update from book draft 2020-02-18 23:58:03 -03:00
index_default.py ch03: update from book draft 2020-02-18 23:58:03 -03:00
index.py ch03: update from book draft 2020-02-18 23:58:03 -03:00
README.md ch03: wip 2019-11-26 12:17:40 -03:00
strkeydict0.py ch03: update from book draft 2020-02-18 23:58:03 -03:00
strkeydict.py ch03: update from book draft 2020-02-18 23:58:03 -03:00
transformdict.py ch03: wip 2019-11-26 12:17:40 -03:00
zen.txt ch03: wip 2019-11-26 12:17:40 -03:00

Dictionaries and Sets

Sample code for Chapter 3 of Fluent Python 2e by Luciano Ramalho (OReilly, 2020)

Running the tests

Doctests

Use Pythons standard doctest module, for example:

$ python3 -m doctest bisect_demo.py -v

Jupyter Notebook

Install pytest and the nbval plugin:

$ pip install pytest nbval

Run:

$ pytest --nbval