From: Neal N. <ne...@me...> - 2004-08-31 23:05:52
|
On Tue, Aug 31, 2004 at 01:10:29PM -0700, Martin Leonard wrote: > I am getting the following warning: > Function (dict) doesn't support **kwArgs for name (aliases) > > On the following code: > retValue = dict(friendlyName = account.friendlyName, > aliases = account.aliases, > state = account.state) > > As far as I can tell this is valid code in Python2.3. Yes, originally I screwed up and thought it was new in 2.4 IIRC. > Maybe this new python feature has not made it into pychecker yet. Correct. At least it hasn't made it into a released version. CVS should be correct. You should be able to update python.py around line 99. It should look like this: if utils.pythonVersion() >= utils.PYTHON_2_3: GLOBAL_FUNC_INFO['dict'] = (types.DictType, 0, 1, []) Neal |