Assign operator should not return reference to python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Won't Fix
|
Low
|
Johan Hake |
Bug Description
a.operator=(b) for functions is mapped to python a.assign(b), and this returns a reference (to a/this). This reference is not properly wrapped in python, but I think it should rather be ignored than returned anyway.
from dolfin import *
c = Constant(0)
d = c.assign(
print d.__class__.mro()
"""
[<class 'dolfin.
<class 'dolfin.
<class 'dolfin.
<class 'ufc.ufc.
<class 'dolfin.
<type 'object'>]
"""
print c.__class__.mro()
"""
[<class 'dolfin.
<class 'ufl.coefficien
<class 'ufl.terminal.
<class 'ufl.terminal.
<class 'ufl.expr.Expr'>,
<class 'ufl.common.
<class 'dolfin.
<class 'dolfin.
<class 'dolfin.
<class 'ufc.ufc.
<class 'dolfin.
<type 'object'>]
"""
Changed in dolfin: | |
importance: | Undecided → Low |
milestone: | none → trunk |
Changed in dolfin: | |
assignee: | nobody → Johan Hake (johan-hake) |
status: | New → Confirmed |
Changed in dolfin: | |
status: | Confirmed → Won't Fix |