example-code-2e/02-array-seq/README.md
2019-11-20 20:19:50 -03:00

372 B
Raw Blame History

An Array of Sequences

Sample code for Chapter 2 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