Changeset 1667822 in git for modules/openmathserver/cd.py


Ignore:
Timestamp:
Jun 15, 2005, 1:50:16 PM (18 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
01cd17fd67cfda8867350bb5007624dde10be224
Parents:
04f6a4e219c5180c44ff638afd7e63cc8ffa3699
Message:
*bricken: refactoring


git-svn-id: file:///usr/local/Singular/svn/trunk@8370 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/openmathserver/cd.py

    r04f6a4 r1667822  
    1 from objects import OMsymbol
     1from objects import OMSymbol
    22from omexceptions import *
    33class OMcd(object):
     
    2222        self.implementations[name]=value
    2323    def implement(self,symbolname, func):
    24         symbol=OMsymbol(symbolname,self.cd)
    25         impl=ImplementedOMsymbol(symbol,func)
     24        symbol=OMSymbol(symbolname,self.cd)
     25        impl=ImplementedOMSymbol(symbol,func)
    2626        self[symbol]=impl
    2727       
    2828
    2929
    30 class ImplementedOMsymbol(OMsymbol):
     30class ImplementedOMSymbol(OMSymbol):
    3131    def __init__(self,symbol, func):
    32         super(ImplementedOMsymbol,self).__init__(symbol.name, symbol.cd)
     32        super(ImplementedOMSymbol,self).__init__(symbol.name, symbol.cd)
    3333        self.implementation=func
    3434    def __str__(self):
Note: See TracChangeset for help on using the changeset viewer.