From 8631cfd3497ddf5b0d26ba10be6f77b41d31c24b Mon Sep 17 00:00:00 2001 From: Lafrite Date: Thu, 27 Feb 2014 18:02:34 +0100 Subject: [PATCH] add __all__ --- pymath/arithmetic.py | 2 ++ pymath/expression.py | 2 ++ pymath/fraction.py | 2 ++ pymath/polynom.py | 2 ++ pymath/render.py | 2 ++ pymath/renders.py | 2 ++ 6 files changed, 12 insertions(+) diff --git a/pymath/arithmetic.py b/pymath/arithmetic.py index 2b2cadd..98fee2e 100644 --- a/pymath/arithmetic.py +++ b/pymath/arithmetic.py @@ -2,6 +2,8 @@ # encoding: utf-8 +__all__ = ['gcd'] + def gcd(a, b): """Compute gcd(a,b) diff --git a/pymath/expression.py b/pymath/expression.py index 777d8be..8121120 100644 --- a/pymath/expression.py +++ b/pymath/expression.py @@ -6,6 +6,8 @@ from .fraction import Fraction from .renders import txt_render, post2in_fix, tex_render from .polynom import Polynom +__all__ = ['Expression'] + class Expression(object): """A calculus expression. Today it can andle only expression with numbers later it will be able to manipulate unknown""" diff --git a/pymath/fraction.py b/pymath/fraction.py index aed0d06..450fb59 100644 --- a/pymath/fraction.py +++ b/pymath/fraction.py @@ -3,6 +3,8 @@ from .arithmetic import gcd +__all__ = ['Fraction'] + class Fraction(object): """Fractions!""" diff --git a/pymath/polynom.py b/pymath/polynom.py index 1341243..e376c22 100644 --- a/pymath/polynom.py +++ b/pymath/polynom.py @@ -5,6 +5,8 @@ from .fraction import Fraction from .generic import add_in_dict, remove_in_dict, convolution_dict import re +__all__ = ['Polynom'] + class Polynom(object): """A polynom (similare to Symbol in Sympy""" diff --git a/pymath/render.py b/pymath/render.py index e0dd8b9..5769673 100644 --- a/pymath/render.py +++ b/pymath/render.py @@ -5,6 +5,8 @@ from .generic import Stack,flatten_list from .fraction import Fraction from .polynom import Polynom +__all__ = ['Render'] + class Render(object): """A class which aims to create render functions from three dictionnaries: - op_infix: dict of caracters or two argument functions diff --git a/pymath/renders.py b/pymath/renders.py index 8bb4f5e..d10b67a 100644 --- a/pymath/renders.py +++ b/pymath/renders.py @@ -6,6 +6,8 @@ from .fraction import Fraction from .polynom import Polynom from .generic import first_elem, last_elem +__all__ = ['post2in_fix', 'tex_render', 'txt_render'] + # ------------------------ # A infix to postfix list convertor