symbolic icon indicating copy to clipboard operation
symbolic copied to clipboard

@sym/{ctranspose,transpose}: *transpose does not work on None

Open alexvong243f opened this issue 3 years ago • 2 comments

I run into the following issues while improving #1194.

Let none = pycall_sympy__ ('return None').

Then both none.' and none' give error: Python exception: AttributeError: 'NoneType' object has no attribute...

I think both none.' and none' should evaluate to none. WDYT?

alexvong243f avatar Aug 30 '22 14:08 alexvong243f

I guess that's right, especially if that is convenient for other code. I'm not really concerned about them being errors either: anyone hitting this In Real Life has likely had something go wrong...

But again, I suspect you need it for other reasons...

cbm755 avatar Sep 02 '22 05:09 cbm755

Yep, we need this for our 2D-sym-compatible functions otherwise tests will fail. I think none should have similar semantics as nan so it won't be too hard to fix / test.

alexvong243f avatar Sep 02 '22 06:09 alexvong243f