.. | ||
.gitignore | ||
array-seq.ipynb | ||
bisect_demo.py | ||
bisect_insort.py | ||
listcomp_speed.py | ||
metro_lat_long.py | ||
README.md | ||
slice-assign.rst | ||
test.sh |
An Array of Sequences
Sample code for Chapter 2 of Fluent Python 2e by Luciano Ramalho (O’Reilly, 2020)
Running the tests
Doctests
Use Python’s 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