The configuration encapsulates all the defaults and standard
behavior of an interpreter. When created, an interpreter is
assigned a configuration; multiple configurations can be shared
between different interpreters. To override the defaults of an
interpreter, create a Configuration instance and then modify its
attributes.
Methods
|
|
|
|
__init__
|
__init__ ( self )
|
|
environment
|
environment (
self,
name,
default=None,
)
Get data from the current environment.
|
|
getDefaultEncoding
|
getDefaultEncoding ( self, default='unknown' )
What is the default encoding?
|
|
getDefaultErrors
|
getDefaultErrors ( self )
|
|
hasEnvironment
|
hasEnvironment ( self, name )
Is the current environment defined in the environment?
|
|
installProxy
|
installProxy ( self )
Install a proxy if necessary.
Exceptions
|
|
ConsistencyError, "interpreter stdout proxy lost"
|
|
|
isStringType
|
isStringType ( self, data )
Is this is a string (normal or Unicode) type?
|
|
open
|
open (
self,
name,
mode=None,
)
Open a new file, depending on whether Unicode is required or not.
|
|
pauseIfRequired
|
pauseIfRequired ( self )
Do any finalization that needs to be done.
|
|
requireUnicode
|
requireUnicode ( self )
require Unicode for this configuration.
|
|
shutdown
|
shutdown ( self )
Shutdown the configuration system.
|
|
toStringType
|
toStringType ( self, data )
Convert this object to a string type as appropriate.
|
|
unwantedGlobalsKeys
|
unwantedGlobalsKeys ( self )
When unfixing globals, these are the keys that should be removed.
|