A tool for quasi-interactive math sheets
Project description
hashequal
a Python tool for quasi-interactive math sheets
on execution it modifies the calling script annotating the results of the operations marked with #=
example
before running
#! /usr/bin/env python
import hashequal
a = 1 + 1 #=
b = a * 2 #= # comment
after running
#! /usr/bin/env python
import hashequal # run 2018-11-06 18:59:54 UTC
a = 1 + 1 #= 2
b = a * 2 #= 4 # comment
instructions
import hashequal
at the beginning of the file, eventually just below the interpreter directive- mark every operation whose result is to be annotated with an
#=
comment - if there need to be further comments on an
#=
line, use another following#
known issues
- does not handle implicit line continuations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hashequal-1.0.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for hashequal-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cde26f7caf233eff15766da833c2e15aba37830a1af143a5f6b021253fa2816c |
|
MD5 | 6ab6c370de1c9d331af237c6bfa45c9e |
|
BLAKE2b-256 | 4cf0b62000739dc5334e50597d75f3acd2f95336f2aebedfe5475333f52b36b6 |