aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-07 11:00:04 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-07 11:00:04 +0200
commit5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455 (patch)
treeec2599c3ecd97bca952b959fd7ce96817c23312f /README.md
downloadpython-c-5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455.tar.gz
python-c-5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455.zip
Initial commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
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
3This repo contains a Python module written in C with only one function.
4
5Works on my machineā„¢. To make it works on yours:
6
71. Install the python development package. It is usually called `python3-dev`
8 or `python3-devel`.
92. Compile this module with `make`.
103. Open `python` and enjoy!
11
12```
13>>> import sum_module
14>>> sum_module.sum_from_c(23, 19)
1542
16```

Generated with cgit - Back to sebastiano.tronto.net