From 5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 7 Oct 2024 11:00:04 +0200 Subject: Initial commit --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..071d2e7 --- /dev/null +++ b/README.md @@ -0,0 +1,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 +``` -- cgit v1.3