Re: [sympy] Coding guidelines

2019-09-08 Thread Rybalka Denys
Great, that is exactly what I've been trying to find! By the way, there is caching property decorator called `@cached_property`, that does exactly what you suggested. It is, however, not in the standard library (https://pypi.org/project/cached-property/). Maybe it would be beneficial to add it to

[sympy] Coding guidelines

2019-09-08 Thread Rybalka Denys
There are several ways to implement properties of sympy objects. The simplest one is: ``` def __new__(*args): obj = Basic(*args) obj.prop = 'some_property' ``` A slightly more complicated one is: ``` def __new__(*args): obj = Basic(*args) obj._prop = 'some_property' @property def

[sympy] tensor module

2019-06-06 Thread Rybalka Denys
I am new to the sympy community, but I haven't found a similar topic anywhere. I am interested in the tensor module, but so far, unfortunately, it does not work. I am thinking about contributing to its development, but first wanted to get a wider perspective. I hope someone can help me with