summaryrefslogtreecommitdiff
path: root/contrib/python/examples/python3/ldns-buf.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/examples/python3/ldns-buf.py')
-rwxr-xr-xcontrib/python/examples/python3/ldns-buf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/python/examples/python3/ldns-buf.py b/contrib/python/examples/python3/ldns-buf.py
new file mode 100755
index 0000000..498d51f
--- /dev/null
+++ b/contrib/python/examples/python3/ldns-buf.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+import ldns
+
+buf = ldns.ldns_buffer(1024)
+buf.printf("Test buffer")
+print(buf)
+