← Back to team overview

dolfin team mailing list archive

[Bug 787438] [NEW] Mismatch between Expression constructor arguments and docstring

 

Public bug reported:

Excerpt from an ipython session:


In [15]: Expression.__init__?
...
Definition:	Expression.__init__(self, cppcode=None, defaults=None, element=None, cell=None, degree=None, **kwargs)
...
In [16]: e = Expression("1.0", cell=triangle)
...
TypeError: __init__() got an unexpected keyword argument 'cell'


The "Definition" part shows cell as an argument, but it is not accepted.
If it shouldn't be there, it should be removed.

** Affects: dolfin
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/787438

Title:
  Mismatch between Expression constructor arguments and docstring

Status in DOLFIN:
  New

Bug description:
  Excerpt from an ipython session:

  
  In [15]: Expression.__init__?
  ...
  Definition:	Expression.__init__(self, cppcode=None, defaults=None, element=None, cell=None, degree=None, **kwargs)
  ...
  In [16]: e = Expression("1.0", cell=triangle)
  ...
  TypeError: __init__() got an unexpected keyword argument 'cell'

  
  The "Definition" part shows cell as an argument, but it is not accepted.
  If it shouldn't be there, it should be removed.


Follow ups

References