Poor argument checking in Python FunctionSpace ctor

Issue #984 new
Jan Blechta created an issue
from dolfin import *
V = FunctionSpace(mesh, 'P', 1)
print(V)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jan/dev/fenics-master/src/ufl/ufl/functionspace.py", line 111, in __repr__
    r = "FunctionSpace(%s, %s)" % (repr(self._ufl_domain), repr(self._ufl_element))
AttributeError: 'FunctionSpace' object has no attribute '_ufl_domain'

Comments (2)

  1. Log in to comment