#!/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