t302.py 132 B

12345
  1. # Test that re-setting the value in a dict doesn't mess with its length
  2. d = {'foo':2}
  3. print len(d), d
  4. d['foo'] = 13
  5. print len(d), d