add __all__

This commit is contained in:
Lafrite 2014-02-27 18:02:34 +01:00
parent 232368fd75
commit 8631cfd349
6 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,8 @@
# encoding: utf-8
__all__ = ['gcd']
def gcd(a, b):
"""Compute gcd(a,b)

View File

@ -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"""

View File

@ -3,6 +3,8 @@
from .arithmetic import gcd
__all__ = ['Fraction']
class Fraction(object):
"""Fractions!"""

View File

@ -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"""

View File

@ -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

View File

@ -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