example-code-2e/03-dict-set
2021-07-07 23:45:54 -03:00
..
py3.10 sync with O'Reilly Atlas 2021-07-07 23:45:54 -03:00
support Modernize code to Python 3.6+ and some cleanup 2021-01-31 22:48:38 +01:00
03-dict-set.ipynb ch03: wip 2019-11-26 12:17:40 -03:00
dialcodes.py updade from Atlas repo 2021-05-21 18:56:12 -03:00
index0.py updade from Atlas repo 2021-05-21 18:56:12 -03:00
index_default.py updade from Atlas repo 2021-05-21 18:56:12 -03:00
index.py updade from Atlas repo 2021-05-21 18:56:12 -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 ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -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