'Constructor.
The optional \'locals\' argument specifies the dictionary in
which code will be executed; it defaults to a newly created
dictionary with key "__name__" set to "__console__" and key
"__doc__" set to None.'

def __init__(self, locals=None):

    if (locals is None):
        locals = {'__name__': '__console__', '__doc__': None}
    self.locals = locals
    self.compile = CommandCompiler()
    return
