add __all__
This commit is contained in:
parent
232368fd75
commit
8631cfd349
@ -2,6 +2,8 @@
|
|||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ['gcd']
|
||||||
|
|
||||||
def gcd(a, b):
|
def gcd(a, b):
|
||||||
"""Compute gcd(a,b)
|
"""Compute gcd(a,b)
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@ from .fraction import Fraction
|
|||||||
from .renders import txt_render, post2in_fix, tex_render
|
from .renders import txt_render, post2in_fix, tex_render
|
||||||
from .polynom import Polynom
|
from .polynom import Polynom
|
||||||
|
|
||||||
|
__all__ = ['Expression']
|
||||||
|
|
||||||
class Expression(object):
|
class Expression(object):
|
||||||
"""A calculus expression. Today it can andle only expression with numbers later it will be able to manipulate unknown"""
|
"""A calculus expression. Today it can andle only expression with numbers later it will be able to manipulate unknown"""
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
from .arithmetic import gcd
|
from .arithmetic import gcd
|
||||||
|
|
||||||
|
__all__ = ['Fraction']
|
||||||
|
|
||||||
class Fraction(object):
|
class Fraction(object):
|
||||||
"""Fractions!"""
|
"""Fractions!"""
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ from .fraction import Fraction
|
|||||||
from .generic import add_in_dict, remove_in_dict, convolution_dict
|
from .generic import add_in_dict, remove_in_dict, convolution_dict
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
__all__ = ['Polynom']
|
||||||
|
|
||||||
class Polynom(object):
|
class Polynom(object):
|
||||||
"""A polynom (similare to Symbol in Sympy"""
|
"""A polynom (similare to Symbol in Sympy"""
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ from .generic import Stack,flatten_list
|
|||||||
from .fraction import Fraction
|
from .fraction import Fraction
|
||||||
from .polynom import Polynom
|
from .polynom import Polynom
|
||||||
|
|
||||||
|
__all__ = ['Render']
|
||||||
|
|
||||||
class Render(object):
|
class Render(object):
|
||||||
"""A class which aims to create render functions from three dictionnaries:
|
"""A class which aims to create render functions from three dictionnaries:
|
||||||
- op_infix: dict of caracters or two argument functions
|
- op_infix: dict of caracters or two argument functions
|
||||||
|
@ -6,6 +6,8 @@ from .fraction import Fraction
|
|||||||
from .polynom import Polynom
|
from .polynom import Polynom
|
||||||
from .generic import first_elem, last_elem
|
from .generic import first_elem, last_elem
|
||||||
|
|
||||||
|
__all__ = ['post2in_fix', 'tex_render', 'txt_render']
|
||||||
|
|
||||||
# ------------------------
|
# ------------------------
|
||||||
# A infix to postfix list convertor
|
# A infix to postfix list convertor
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user