Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

README.md

Outline

The Python Data Model

Sample code for Chapter 1 of Fluent Python 2e by Luciano Ramalho (O'Reilly, 2020)

Running the tests

Doctests

Use Python's standard doctest module to check stand-alone doctest file:

$ python3 -m doctest frenchdeck.doctest -v

And to check doctests embedded in a module:

$ python3 -m doctest vector2d.py -v

Jupyter Notebook

Install pytest and the nbval plugin:

$ pip install pytest nbval

Run:

$ pytest --nbval
Morty Proxy This is a proxified and sanitized view of the page, visit original site.