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
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
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
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