Classes | |
class | Result |
Functions | |
def | FromString |
Variables | |
tuple | r = Result( 3, 4 ) |
def Result::FromString | ( | line, | ||
state = "old" | ||||
) |
Definition at line 78 of file Result.py.
00078 : 00079 import re 00080 import Factors 00081 00082 tokens = re.split( " +", line ) 00083 date = "%s %s" % ( tokens[ 0 ], tokens[ 1 ] ) 00084 date = TimeStamp.TimeStamp( date ) 00085 order = int( tokens[ 2 ] ) 00086 power = int( tokens[ 3 ] ) 00087 00088 tokens = re.split( "[()]", line ) 00089 factors = Factors.FromString( tokens[ 1 ] ) 00090 00091 answer = Result( order, factors, date, state ) 00092 00093 return answer 00094 if __name__ == '__main__':