Re: Documentation of dict views change request

2014-01-19 Thread Terry Reedy
On 1/19/2014 4:41 PM, Mark Lawrence wrote: On 19/01/2014 21:26, Charles Hixson wrote: Could it please be clearly documented that keys(), values(), and items() are not writeable. I agree that this is how they should be, but it would be still better if they were clearly documented as such. The l

Re: Documentation of dict views change request

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 8:40 AM, Roy Smith wrote: > In article , > Charles Hixson wrote: > >> Could it please be clearly documented that keys(), values(), and items() >> are not writeable. > > We'll, technically, they are. > > Of course, this only changes the list that keys() returns, it doesn't

Re: Documentation of dict views change request

2014-01-19 Thread Roy Smith
In article , Charles Hixson wrote: > Could it please be clearly documented that keys(), values(), and items() > are not writeable. We'll, technically, they are. >>> d = {'foo': 1, 'bar':2} >>> k = d.keys() >>> k ['foo', 'bar'] >>> k[0] = "some other key" >>> k ['some other key', 'bar'] Of co

Re: Documentation of dict views change request

2014-01-19 Thread Mark Lawrence
On 19/01/2014 21:26, Charles Hixson wrote: Could it please be clearly documented that keys(), values(), and items() are not writeable. I agree that this is how they should be, but it would be still better if they were clearly documented as such. The labeling of them as dynamic, while true, was

Documentation of dict views change request

2014-01-19 Thread Charles Hixson
Could it please be clearly documented that keys(), values(), and items() are not writeable. I agree that this is how they should be, but it would be still better if they were clearly documented as such. The labeling of them as dynamic, while true, was a bit confusing here. (I.e., it was talk