Proxy python classes should be removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Fix Released
|
Wishlist
|
Václav Šmilauer |
Bug Description
Since r1875, python no longer depends on serialization, therefore doesn't have to instantiate Archive for every class. This makes py* classes (pyBody, pyInteraction, ...) redundant, as we can wrap directly Body, Interaction etc using boost::python. This will give additional advantage of automatic conversions from shared_ptr<Body> to python's Body class, probably also increasing performance. Python interface will not change.
Currently, doing
s=utils.
s['interacting
TypeError: No to_python (by-value) converter found for C++ type: boost::
and the b.mold shorthand (which wraps shared_
Changed in yade: | |
assignee: | nobody → Václav Šmilauer (eudoxos) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
All special methods can be wrapped using pointers to non-member functions (defined separately) taking the class instance as the first argument, instead of using pointers to member functions of the wrapper classes which don't directly wrap a proxee method.