aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 071d2e71552047af837c73aca0f597e2214b850f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# A tiny demo for a Python module in C

This repo contains a Python module written in C with only one function.

Works on my machineā„¢. To make it works on yours:

1. Install the python development package. It is usually called `python3-dev`
   or `python3-devel`.
2. Compile this module with `make`.
3. Open `python` and enjoy!

```
>>> import sum_module
>>> sum_module.sum_from_c(23, 19)
42
```

Generated with cgit - Back to sebastiano.tronto.net