Commit 1dcb8c52 authored by Stefan Behnel's avatar Stefan Behnel

renaming, renaming ...

parent 8e59ce42
...@@ -4,20 +4,20 @@ cimport cppwrap_lib ...@@ -4,20 +4,20 @@ cimport cppwrap_lib
cdef class DoubleKeeper: cdef class DoubleKeeper:
cdef cppwrap_lib.DoubleKeeper* keeper cdef cppwrap_lib.DoubleKeeper* keeper
def __cinit__(self, factor=None): def __cinit__(self, number=None):
if factor is None: if number is None:
self.keeper = new cppwrap_lib.DoubleKeeper() self.keeper = new cppwrap_lib.DoubleKeeper()
else: else:
self.keeper = new cppwrap_lib.DoubleKeeper(factor) self.keeper = new cppwrap_lib.DoubleKeeper(number)
def __dealloc__(self): def __dealloc__(self):
del self.keeper del self.keeper
def set_number(self, factor=None): def set_number(self, number=None):
if factor is None: if number is None:
self.keeper.set_number() self.keeper.set_number()
else: else:
self.keeper.set_number(factor) self.keeper.set_number(number)
def get_number(self): def get_number(self):
return self.keeper.get_number() return self.keeper.get_number()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment