This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients amaury.forgeotdarc, belopolsky, benjamin.peterson, bmiller, loewis, rhettinger
Date 2008-06-17.21:35:48
SpamBayes Score 0.012538451
Marked as misclassified No
Message-id <48582E31.6030709@v.loewis.de>
In-reply-to <e45086040806170529n6f7407c4v28bcb107ee73bca3@mail.gmail.com>
Content
> I do not understand why you think that having the interpreter display
> <dict_keys: 2, 3, 4, ...>
> when x.keys() is called is not an improvement over
> <dict_keys object at 0xe72b0>

I didn't say that the change in dict_keys is not an improvement,
but that the patch doesn't achieve its objective anymore, which
was to display range() nicely at the interactive prompt.

> Maybe it is just because I spend a lot more time in the interactive
> interpreter that I see this as a big improvement.

So do I. But I typically display the dictionary itself when looking
at it in an interactive prompt; I would not normally look at .keys(),
except when I want to know what all the keys in the dictionary are,
in which case the new repr won't help, either (and I will have to
apply list() in 3.0, or, rather, sorted())
History
Date User Action Args
2008-06-17 21:35:51loewissetspambayes_score: 0.0125385 -> 0.012538451
recipients: + loewis, rhettinger, amaury.forgeotdarc, belopolsky, benjamin.peterson, bmiller
2008-06-17 21:35:50loewislinkissue2610 messages
2008-06-17 21:35:49loewiscreate