diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-07 11:00:04 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-07 11:00:04 +0200 |
| commit | 5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455 (patch) | |
| tree | ec2599c3ecd97bca952b959fd7ce96817c23312f /README.md | |
| download | python-c-5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455.tar.gz python-c-5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455.zip | |
Initial commit
Diffstat (limited to '')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..071d2e7 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # A tiny demo for a Python module in C | ||
| 2 | |||
| 3 | This repo contains a Python module written in C with only one function. | ||
| 4 | |||
| 5 | Works on my machineā¢. To make it works on yours: | ||
| 6 | |||
| 7 | 1. Install the python development package. It is usually called `python3-dev` | ||
| 8 | or `python3-devel`. | ||
| 9 | 2. Compile this module with `make`. | ||
| 10 | 3. Open `python` and enjoy! | ||
| 11 | |||
| 12 | ``` | ||
| 13 | >>> import sum_module | ||
| 14 | >>> sum_module.sum_from_c(23, 19) | ||
| 15 | 42 | ||
| 16 | ``` | ||
