/trunk/Lib/python/pyabc.i

# · Swig · 10 lines · 10 code · 0 blank · 0 comment · 0 complexity · 6e6f3d4ea4edeb2a39f6cc886b49bf90 MD5 · raw file

  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);