[PATCH] Fix issue 1920: SymTuple doesn't rebuild itself

2010-04-30 Thread Øyvind Jensen
SymTuple did not fulfill foo.func(*foo.args) == foo. This patch fixes that by storing the wrapped tuple as .args[0] instead of directly as .args Updated all SymTuple methods, added a test and fixed some whitespace. --- sympy/physics/secondquant.py| 35 +-

[PATCH] Fix issue 1920: SymTuple doesn't rebuild itself

2010-05-01 Thread Øyvind Jensen
SymTuple did not fulfill foo.func(*foo.args) == foo. This patch fixes that by treating the constructor *args as items of the tuple, rather than expecting exactly one tuple argument. Added docstring, doctest and test + fixed some related whitespace errors. --- sympy/physics/secondquant.py