summaryrefslogtreecommitdiff
path: root/bindings/python
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/pygmathlib/gmathlib.pyx16
1 files changed, 8 insertions, 8 deletions
diff --git a/bindings/python/pygmathlib/gmathlib.pyx b/bindings/python/pygmathlib/gmathlib.pyx
index a16807a..807b822 100644
--- a/bindings/python/pygmathlib/gmathlib.pyx
+++ b/bindings/python/pygmathlib/gmathlib.pyx
@@ -134,7 +134,7 @@ cdef class Symbol:
cdef object context
cdef object children
- def __new__ (self, context, type = "", symbol = None, c_symbol = False,
+ def __new__ (self, context, symtype = "", symbol = None, c_symbol = False,
copy = None):
cdef GMathSymbol *child
cdef GMathContext *ccontext
@@ -142,8 +142,8 @@ cdef class Symbol:
ccontext = <GMathContext *> context.c_context
if c_symbol:
self.csymbol = <GMathSymbol *> symbol
- elif type:
- self.csymbol = gmathsymbol_new (ccontext, type)
+ elif symtype:
+ self.csymbol = gmathsymbol_new (ccontext, symtype)
if copy:
self.children = [None] * len (copy.children_)
@@ -177,7 +177,7 @@ cdef class Symbol:
copy = self
else:
copy = None
- symbol = Symbol (self.context, type = self.type, copy = copy)
+ symbol = Symbol (self.context, symtype = self.type, copy = copy)
symbol.value = self.value
return symbol
@@ -307,7 +307,7 @@ cdef class Formula:
def free (self):
if self.root:
self.root.free ()
- self.set_root (None)
+ self.set_root (None)
gmathformula_free (self.cformula)
def __dealloc__ (self):
@@ -404,15 +404,15 @@ cdef class Context:
self.formulas.append (formula)
def Atom (self, value):
- symbol = self.Symbol (type = "atom")
+ symbol = self.Symbol (symtype = "atom")
symbol.value = value
return symbol
def Formula (self):
return Formula (self)
- def Symbol (self, type = "", symbol = None):
- return Symbol (self, type, symbol)
+ def Symbol (self, symtype = "", symbol = None):
+ return Symbol (self, symtype, symbol)
def Array (self, rows, columns):
return Array (self, rows, columns)