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 exarkun
Recipients belopolsky, exarkun, gvanrossum, lpd, rhettinger
Date 2008-03-08.13:57:55
SpamBayes Score 0.00213462
Marked as misclassified No
Message-id <1204984677.51.0.0999557451416.issue1733184@psf.upfronthosting.co.za>
In-reply-to
Content
I don't see the ability to use a slice as a dict key as particularly
more surprising than the ability to use ints as dict keys.  Someone who
doesn't understand how dicts work can use either of these features to
write broken programs.

I have thought about that example and it's precisely the kind of thing I
would like to work.  The behavior is consistent with that of using any
other immutable value as a key.  I don't have a use case right now (and
by admitting so may be dooming this change - but L. Peter Deutsch has
one, I think) but there's no way I would ever benefit from the current
behavior, whereas I _might_ be able to do something useful with the
proposed behavior.
History
Date User Action Args
2008-03-08 13:57:57exarkunsetspambayes_score: 0.00213462 -> 0.00213462
recipients: + exarkun, gvanrossum, rhettinger, lpd, belopolsky
2008-03-08 13:57:57exarkunsetspambayes_score: 0.00213462 -> 0.00213462
messageid: <1204984677.51.0.0999557451416.issue1733184@psf.upfronthosting.co.za>
2008-03-08 13:57:56exarkunlinkissue1733184 messages
2008-03-08 13:57:55exarkuncreate