summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/python/pyabc.i
diff options
context:
space:
mode:
Diffstat (limited to 'share/swig/2.0.11/python/pyabc.i')
-rw-r--r--share/swig/2.0.11/python/pyabc.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/swig/2.0.11/python/pyabc.i b/share/swig/2.0.11/python/pyabc.i
new file mode 100644
index 0000000..3da06b5
--- /dev/null
+++ b/share/swig/2.0.11/python/pyabc.i
@@ -0,0 +1,10 @@
+%define %pythonabc(Type, Abc)
+ %feature("python:abc", #Abc) Type;
+%enddef
+%pythoncode {import collections};
+%pythonabc(std::vector, collections.MutableSequence);
+%pythonabc(std::list, collections.MutableSequence);
+%pythonabc(std::map, collections.MutableMapping);
+%pythonabc(std::multimap, collections.MutableMapping);
+%pythonabc(std::set, collections.MutableSet);
+%pythonabc(std::multiset, collections.MutableSet);