/trunk/Lib/python/pyabc.i
# · Swig · 10 lines · 10 code · 0 blank · 0 comment · 0 complexity · 6e6f3d4ea4edeb2a39f6cc886b49bf90 MD5 · raw file
- %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);