[python][generator] Consider holder type
1 unresolved thread
1 unresolved thread
- holder was ignored up to now
- specifying base type holder type was not possible
@andreas.dedner Could you please have a look?
Edited by Kilian Weishaupt
Merge request reports
Activity
- Resolved by Andreas Dedner
There is clearly an issue with the
holder
parameter in themain
method not being accessible. Not quite sure what happened there. An issue is thatbasesClasses
is a tuple and theholder
could be different for each of those.I just checked existing code and the
holder
argument doesn't seem to be used - we set theholder
through theoptions
argument toload
, e.g.,module = generator.load(includes+dfIncludes, [typeName,dfTypeName], moduleName, ((*args,), (*dfArgs,)), dynamicAttr=[True,True], bufferProtocol=[False,True], options=[["std::shared_ptr<DuneType>"],[]], defines=defines)
So I'm wondering if we need:
-
holder
argument similar todynanmicAttr
, e.g., in the aboveholder=[std::shared,None]
-
baseHolder
as tuple
But perhaps there is a better way of doing it
-
- Resolved by Kilian Weishaupt
changed milestone to %DUNE 2.8.0
mentioned in commit bf619b87
picked the changes into the branch
cherry-pick-bf619b87
with commit b2525d14mentioned in commit b2525d14
mentioned in merge request !1012 (merged)
Please register or sign in to reply