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

Commit ce910b4

Browse filesBrowse files
committed
🎉 提交原书代码
1 parent f0a6e2e commit ce910b4
Copy full SHA for ce910b4

File tree

Expand file treeCollapse file tree

490 files changed

+47920
-0
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

490 files changed

+47920
-0
lines changed

‎assets/01-data-model/README.md

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# The Python Data Model
2+
3+
Sample code for Chapter 1 of _Fluent Python 2e_ by Luciano Ramalho (O'Reilly, 2020)
4+
5+
## Running the tests
6+
7+
### Doctests
8+
9+
Use Python's standard ``doctest`` module to check stand-alone doctest file:
10+
11+
$ python3 -m doctest frenchdeck.doctest -v
12+
13+
And to check doctests embedded in a module:
14+
15+
$ python3 -m doctest vector2d.py -v
16+
17+
### Jupyter Notebook
18+
19+
Install ``pytest`` and the ``nbval`` plugin:
20+
21+
$ pip install pytest nbval
22+
23+
Run:
24+
25+
$ pytest --nbval

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.