Re: python 3 dict: .keys(), .values(), and .item()

2017-01-07 Thread Steve D'Aprano
On Sun, 8 Jan 2017 08:48 am, Ethan Furman wrote: > In Python 2 we have: > >dict().keys() \ >dict().items() --> separate list() of the results >dict().values() / > > and > >dict().iter_keys() \ >dict().iter_items() --> integrated iter() of the results >dict().it

Re: python 3 dict: .keys(), .values(), and .item()

2017-01-07 Thread Ethan Furman
On 01/07/2017 03:04 PM, Peter Otten wrote: Ethan Furman wrote: In Python 2 we have: dict().keys() \ dict().items() --> separate list() of the results dict().values() / and dict().iter_keys() \ dict().iter_items() --> integrated iter() of the results dict().i

Re: python 3 dict: .keys(), .values(), and .item()

2017-01-07 Thread Peter Otten
Ethan Furman wrote: > In Python 2 we have: > >dict().keys() \ >dict().items() --> separate list() of the results >dict().values() / > > and > >dict().iter_keys() \ >dict().iter_items() --> integrated iter() of the results >dict().iter_values() / I guess you di

python 3 dict: .keys(), .values(), and .item()

2017-01-07 Thread Ethan Furman
In Python 2 we have: dict().keys() \ dict().items() --> separate list() of the results dict().values() / and dict().iter_keys() \ dict().iter_items() --> integrated iter() of the results dict().iter_values() / By "separate list" I mean a snapshot of the dict at the time,