pearu / sympycore

Automatically exported from code.google.com/p/sympycore
Other
11 stars 1 forks source link

NotImplementedError for expr.args #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Until revision r1049:

In [1]: from sympycore import *

In [2]: x,y = map(Symbol, 'xy')

In [3]: (3*x + 4*y).args
Out[3]: [Calculus('4*y'), Calculus('3*x')]

From r1130 until the most recent revision I get:

In [3]: (3*x + 4*y).args
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)

/home/friedrich/local/src/sympycore-read-only/<ipython console> in <module>()

/home/friedrich/local/src/sympycore-read-only/sympycore/basealgebra/algebra.pyc 
in args(self)
    287         """
    288         raise NotImplementedError('%s must define property "args"'      #pragma NO COVER
--> 289                                   % (self.__class__.__name__))        
#pragma NO COVER
    290 
    291     @classmethod

NotImplementedError: Calculus must define property "args"

Original issue reported on code.google.com by friedric...@gmx.de on 16 Nov 2012 at 10:56