Package param :: Module tk :: Class Eval_ReprTranslator
[hide private]
[frames] | no frames]

Class Eval_ReprTranslator

source code


Translates a string to an object by eval()ing the string in __main__.__dict__ (i.e. as if the string were typed at the commandline), and translates an object to a string by repr(object).
Instance Methods [hide private]
 
__init__(self, param, initial_value=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
string2object(self, string_) source code
 
object2string(self, object_) source code
 
__copy__(self)
Copy only translator-specific state.
source code

Inherited from Translator (private): _pass_out_msg

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  last_object = None
  last_string = None

Inherited from Translator: last_string2object_failed

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, param, initial_value=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

string2object(self, string_)

source code 
Overrides: Translator.string2object

object2string(self, object_)

source code 
Overrides: Translator.object2string

__copy__(self)

source code 
Copy only translator-specific state.
Overrides: Translator.__copy__
(inherited documentation)