On Sun, Feb 28, 2010 at 4:01 PM, Edward K. Ream <[email protected]> wrote:
> This will set the config object self.config, to the settings in effect
> for the file whose name is fn. The ivars of this object correspond to
> all the various user settings. setConfig will init the object using
> per-file settings if they exist, otherwise global settings, otherwise
> default settings. So setConfig is a bit complex, but the result is as
> simple as possible.
setConfig will be extremely fast::
def setConfig (self,fn):
self.config = self.configDictDict.get(fn)
That is, the computation of the configuration dicts will happen during startup.
There is a complication, at least for pylint itself. Programs may
have "pragmas" (comments) that enable or disable various checks.
Thus, self.config may change during a pass. Details such as these
hugely complicate pychecker. I'm not so sure about pylint. In any
case, we want to start with something extremely simple to have the
best chance of ending with something simple.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.