[PATCH 3/3] Add code quality tests concerning exceptions

2009-04-18 Thread Tomasz Buchert
1) Forbid string exceptions globally (issue 715 related) 2) Forbid generic exceptions (i.e. 'raise Exception(...)') --- sympy/utilities/tests/test_code_quality.py |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/sympy/utilities/tests/test_code_quality.py

[PATCH 1/3] Removed string exceptions from SymPy (issue 715)

2009-04-18 Thread Tomasz Buchert
--- sympy/core/basic.py |2 +- sympy/matrices/matrices.py| 20 ++-- sympy/physics/matrices.py |4 ++-- sympy/physics/paulialgebra.py |2 +- sympy/series/gruntz.py|2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH 2/3] Removal of all generic exceptions from SymPy

2009-04-18 Thread Tomasz Buchert
--- examples/advanced/gibbs_phenomenon.py |2 +- sympy/core/basic.py|4 ++-- sympy/core/function.py |2 +- sympy/core/numbers.py |2 +- sympy/core/power.py|4 ++-- sympy/geometry/ellipse.py

[PATCH] Forbid string exceptions globally (issue 715 related)

2009-04-13 Thread Tomasz Buchert
--- sympy/utilities/tests/test_code_quality.py |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sympy/utilities/tests/test_code_quality.py b/sympy/utilities/tests/test_code_quality.py index b2f2e91..621b2a8 100644 --- a/sympy/utilities/tests/test_code_quality.py +++

[PATCH 1/2] Removed string exceptions from SymPy (issue 715)

2009-04-13 Thread Tomasz Buchert
--- sympy/core/basic.py |2 +- sympy/matrices/matrices.py| 16 sympy/physics/matrices.py |4 ++-- sympy/physics/paulialgebra.py |2 +- sympy/series/gruntz.py|2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH 1/1] This fixes issue 1329. Also: printing for math constants

2009-04-07 Thread Tomasz Buchert
--- sympy/printing/ccode.py| 21 + sympy/printing/tests/test_ccode.py | 27 ++- 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/sympy/printing/ccode.py b/sympy/printing/ccode.py index e62786e..a1341b5 100644 ---