1 %define %pythonabc(Type, Abc) 2 %feature("python:abc", #Abc) Type; 3 %enddef 4 %pythoncode {import collections}; 5 %pythonabc(std::vector, collections.MutableSequence); 6 %pythonabc(std::list, collections.MutableSequence); 7 %pythonabc(std::map, collections.MutableMapping); 8 %pythonabc(std::multimap, collections.MutableMapping); 9 %pythonabc(std::set, collections.MutableSet); 10 %pythonabc(std::multiset, collections.MutableSet); 11