View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001368 | FreeCAD | Bug | public | 2014-01-27 16:58 | 2015-12-15 13:15 |
Reporter | pkoning2 | Assigned To | wmayer | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | trunk | ||||
Fixed in Version | 0.16 | ||||
Summary | 0001368: Subclassing Matrix silently fails | ||||
Description | To work around issue 1364 in the build I have, I tried to subclass Base.Matrix to override the move method. That was accepted, and I can construct objects of the subclass. But it doesn't actually work; the constructed objects have the wrong class (the base class Base.Matrix). It would be good for subclassing to work, but if it's not going to work, the FreeCAD builtin classes should be marked as not permitting subclassing. | ||||
Steps To Reproduce | class M(Base.Matrix): pass m=M() assert (type(m) == M) | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
FreeCAD: master 706d1593 2015-10-12 18:29:00 Details Diff |
+ fixes 0001368: Subclassing Matrix silently fails |
Affected Issues 0001368 |
|
mod - src/App/Application.cpp | Diff File | ||
FreeCAD: master 5cc7f8b1 2015-10-12 19:59:58 Details Diff |
+ remove Py_TPFLAGS_BASETYPE flag for all generated Python bindings because they can't be sub-classed in Python |
Affected Issues 0001368 |
|
mod - src/App/Application.cpp | Diff File | ||
mod - src/Tools/generateTemplates/templateClassPyExport.py | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-01-27 16:58 | pkoning2 | New Issue | |
2015-10-12 16:29 | wmayer | Changeset attached | => FreeCAD Master master 706d1593 |
2015-10-12 16:29 | wmayer | Assigned To | => wmayer |
2015-10-12 16:29 | wmayer | Status | new => closed |
2015-10-12 16:29 | wmayer | Resolution | open => fixed |
2015-10-12 20:38 | wmayer | Changeset attached | => FreeCAD Master master 5cc7f8b1 |
2015-12-15 13:15 | yorik | Fixed in Version | => 0.16 |