Существуют ли какие-либо применимые различия между dict.items() и dict.iteritems()?
В документах Python:
dict.items(): верните копию из списка словарей (пары ключ, значение).
dict.iteritems(): верните итератор по парам словарей (ключ, значение).
Если я запустил код ниже, каждый, похоже, вернет ссылку на тот же объект. Есть ли какие-то тонкие различия, которые мне не хватает?
#!/usr/bin/python
d={1:'one',2:'two',3:'three'}
print 'd.items():'
for k,v in d.items():
   if d[k] is v: print '\tthey are the same object' 
   else: print '\tthey are different'
print 'd.iteritems():'   
for k,v in d.iteritems():
   if d[k] is v: print '\tthey are the same object' 
   else: print '\tthey are different'   
Вывод:
d.items():
    they are the same object
    they are the same object
    they are the same object
d.iteritems():
    they are the same object
    they are the same object
    they are the same object
