summaryrefslogtreecommitdiff
path: root/doc/source/f2py/code/var.pyf
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/f2py/code/var.pyf')
-rw-r--r--doc/source/f2py/code/var.pyf11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/source/f2py/code/var.pyf b/doc/source/f2py/code/var.pyf
new file mode 100644
index 000000000..8275ff3af
--- /dev/null
+++ b/doc/source/f2py/code/var.pyf
@@ -0,0 +1,11 @@
+! -*- f90 -*-
+python module var
+ usercode '''
+ int BAR = 5;
+ '''
+ interface
+ usercode '''
+ PyDict_SetItemString(d,"BAR",PyInt_FromLong(BAR));
+ '''
+ end interface
+end python module