Menu

#176 additional python STL infrastructure

open
nobody
None
5
2022-03-18
2007-05-03
No

I have a series of hacks to the swig 1.3.31 python .i and .swg files that gives the following STL functionality:

* containers (vector, list, deque, set, map, multiset, multimap) of python objects that even use custom python compare functions.

* read/write random-access iterators in those containers.

* functors from callable python objects (i.e. lambdas, functions, methods). These can operator on normal python objects or those that swig wrapped ( i.e. C++ objects in a container).

* ability to easily wrap most(all?) algorithms to operate on iterators from any container (and use the above functors).

Discussion

  • Eric Mahurin

    Eric Mahurin - 2007-05-03

    swig files and test python to interface python to C++ STL

     
  • Olly Betts

    Olly Betts - 2022-03-18

    The functionality sounds nice, but to merge we really need a patch (rather than copies of the changed files) which also adds automated test coverage and documentation rather than "a series of hacks". Otherwise it's going to be hard to maintain going forwards.

    Sadly this has sat for a very long time now, so will need some updating. Some of it may have been implemented in the meantime, but I don't think all.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.