GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — example-code-2e/03-dict-set at master · FerMatPy/example-code-2e

Expand file tree

/

03-dict-set

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

03-dict-set

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
py3.10
py3.10
 
 
support
support
 
 
03-dict-set.ipynb
03-dict-set.ipynb
 
 
README.md
README.md
 
 
dialcodes.py
dialcodes.py
 
 
index.py
index.py
 
 
index0.py
index0.py
 
 
index_default.py
index_default.py
 
 
missing.py
missing.py
 
 
strkeydict.py
strkeydict.py
 
 
strkeydict0.py
strkeydict0.py
 
 
transformdict.py
transformdict.py
 
 
zen.txt
zen.txt
 
 

README.md

Outline

Dictionaries and Sets

Sample code for Chapter 3 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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.