#NEWLINE# def from_dict( self , dic ) : #NEWLINE# #INDENT# for ( k , v ) in dic . items ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ctor = self . OPTIONS [ k ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# fmt = "Does not support option: '%s'" #NEWLINE# raise KeyError ( ( fmt % k ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . values [ k ] = ctor ( v )