Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5448
| References | (1 earlier) <BANLkTikszH_r-PAuL0pJ8reMc+bGafuRew@mail.gmail.com> <mailman.1584.1305450715.9059.python-list@python.org> <4dcfa885$0$29996$c3e8da3$5496439d@news.astraweb.com> <87sjsgutqg.fsf@falma.de> <iqpefi$g0i$1@dough.gmane.org> |
|---|---|
| Date | 2011-05-15 14:19 -0700 |
| Subject | Re: dict: retrieve the original key by key |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1602.1305494385.9059.python-list@python.org> (permalink) |
On Sun, May 15, 2011 at 1:53 PM, Terry Reedy <tjreedy@udel.edu> wrote: > On 5/15/2011 6:46 AM, Christoph Groth wrote: <snip> >> But hey, they keys of my dictionary are actually strings, so I can use >> the built-in intern. Somehow, I have never stumbled accross this >> built-in function so far. > > It was, however, removed in 3.x as a seldom-externally-used internal > implementation detail. Still exists in sys module though: http://docs.python.org/dev/library/sys.html#sys.intern Cheers, Chris
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: dict: retrieve the original key by key Christoph Groth <cwg@falma.de> - 2011-05-15 11:11 +0200
Re: dict: retrieve the original key by key Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-15 10:18 +0000
Re: dict: retrieve the original key by key Christoph Groth <cwg@falma.de> - 2011-05-15 12:46 +0200
Re: dict: retrieve the original key by key Terry Reedy <tjreedy@udel.edu> - 2011-05-15 16:53 -0400
Re: dict: retrieve the original key by key Chris Rebert <clp2@rebertia.com> - 2011-05-15 14:19 -0700
Re: dict: retrieve the original key by key Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-15 18:47 -0600
csiph-web