[Python-3000] The latest extended buffer PEP

2007-03-27 Thread Travis E. Oliphant
The latest update is here. Carl and Greg, can I add your names to the PEP author list? I think we are very close. I'd like to start working on the implmentation. The modifications to the struct module is probably where I'll start. I really like the possibilities this will open up for shari

Re: [Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread Josiah Carlson
"BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: > col = attrtuple(r = 255, g = 0, b = 128) > r, g, b = col That is handled reasonably well with Raymond's recipe (or variants thereof). > el = make_el('input', type = 'text', class = 'query') XML elements are not ordering sensitive. > Or interface e

Re: [Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread BJörn Lindqvist
On 3/27/07, Frank Benkstein <[EMAIL PROTECTED]> wrote: > Hi, > > One thing that has come up quite often IIRC is the request for an > ordered mapping type. It would like to propose to add such a type to > Python 3000 and make it immutable, to prevent all kind of problems that > would occur otherwise

Re: [Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread Martin v. Löwis
> I believe the reason for immutable *args is one of optimization. I think there is also a correctness issue at work. For an immutable argument tuple, you can be sure that the tuple won't change "behind you". That, in turn, means that PyArg_ParseTuple can return borrowed references, so that C func

Re: [Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread Josiah Carlson
Frank Benkstein <[EMAIL PROTECTED]> wrote: > One thing that has come up quite often IIRC is the request for an > ordered mapping type. It would like to propose to add such a type to > Python 3000 and make it immutable, to prevent all kind of problems that > would occur otherwise. Other than that i

Re: [Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread Aahz
On Tue, Mar 27, 2007, Frank Benkstein wrote: > > Comments? Should I try to wrap this up as a PEP? You should try to start a discussion on either comp.lang.python or python-ideas. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Need a book? Use your library! ___

[Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread Frank Benkstein
Hi, One thing that has come up quite often IIRC is the request for an ordered mapping type. It would like to propose to add such a type to Python 3000 and make it immutable, to prevent all kind of problems that would occur otherwise. Other than that it should behave just the same as dictionaries f