Share

PyChecker

Tracker: Bugs

5 Spurious warning for dict method - ID: 2891832
Last Update: Tracker Item Submitted ( nobody )

#!/usr/bin/python

def a_dict():
return {1:2}

def main():
dict_a = {
'hello': 'world'
}

dict_a.update(a_dict())

dict_b = {
'hello': 'again'
}

dict_b.update(a_dict())

main()

Gives the warning ../../../test.py:11: Object (dict_a) has no attribute
(update)
Note that the corresponding operation for dict_b does not give a warning.


Nobody/Anonymous ( nobody ) - 2009-11-04 10:44

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.