Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105739

Re: Suggestion: make sequence and map interfaces more similar

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Suggestion: make sequence and map interfaces more similar
Date 2016-03-26 10:29 +0000
Message-ID <mailman.29.1458988205.28225.python-list@python.org> (permalink)
References <mailman.34.1458721359.2244.python-list@python.org> <56f27d76$0$1600$c3e8da3$5496439d@news.astraweb.com> <CABbU2U88B4gemYRRLrd+S57Pwfo8WdsJ9vi9ROzXg2q_hiKzJw@mail.gmail.com>

Show all headers | View raw


On 26/03/2016 00:35, Marco Sulla wrote:
>
> I'd like to see vdict implemented anyway. It can't break old code and add a
> map type that has a common interface with sequences.
>

I cannot see this happening unless you provide a patch on the bug 
tracker.  However I suspect you can get the same thing by subclassing 
dict.  Why don't you try it and let us know how you get on?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Suggestion: make sequence and map interfaces more similar "Marco S." <mail.python.org@marco.sulla.e4ward.com> - 2016-03-22 20:54 +0100
  Re: Suggestion: make sequence and map interfaces more similar Steven D'Aprano <steve@pearwood.info> - 2016-03-23 22:26 +1100
    Re: Suggestion: make sequence and map interfaces more similar Marco Sulla <marcosullaroma@gmail.com> - 2016-03-26 01:18 +0100
      Re: Suggestion: make sequence and map interfaces more similar Steven D'Aprano <steve@pearwood.info> - 2016-03-26 22:41 +1100
    Re: Suggestion: make sequence and map interfaces more similar Marco Sulla <marcosullaroma@gmail.com> - 2016-03-26 01:35 +0100
    Re: Suggestion: make sequence and map interfaces more similar Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-26 10:29 +0000

csiph-web