Re: [Python-3000] int-long unification

2006-08-21 Thread Nick Coghlan
Martin v. Löwis wrote: > Guido van Rossum schrieb: >> Are you interested in doing this at the Google sprint next week? > > Sure; I hadn't any special plans so far. > >> What do you think? > > Sounds good. There are two problems I see: > > - how to benchmark? > > - there are subtle details in t

Re: [Python-3000] int-long unification

2006-08-21 Thread Marcin 'Qrczak' Kowalczyk
Nick Coghlan <[EMAIL PROTECTED]> writes: > PyInt_AsLong can already fail with OverflowError > it accepts arbitrary objects and coerces them to integers via > __int__, instead of just accepting PyInt instances. If it calls __int__, it can fail with any exception resulting from user code. Greppin

Re: [Python-3000] Google Sprint Ideas

2006-08-21 Thread Ivan Krstić
Alexander Belopolsky wrote: > The new API does not seem to provide for a way to read > data directly into an existing object without creating > an intermediate bytes object. This is among the several things that Itamar Shtull-Trauring mentioned during his PyCon 2005 talk on 'Fast Networking with P

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Georg Brandl
python.org Webmaster wrote: > Dear Wiki user, > > You have subscribed to a wiki page or wiki category on "PythonInfo Wiki" for > change notification. > > The following page has been changed by 65.57.245.11: > http://wiki.python.org/moin/GoogleSprintPy3k > > -

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Collin Winter
On 8/21/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > python.org Webmaster wrote: > > - * Make zip() an iterator (like itertools.zip()) > > + * Make zip() an iterator (like itertools.izip()) > > + > > + * Make map() and filter() iterators and make them stop at the end of the > > shortest input

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Guido van Rossum
On 8/21/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > > + * Make map() and filter() iterators and make them stop at the end of the > > shortest input (like zip()) instead of at the end of the longest input > > May I suggest an additional keyword(-only?) argument to get the old behavior, > stoppin

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Guido van Rossum
On 8/21/06, Collin Winter <[EMAIL PROTECTED]> wrote: > I thought map() and filter() were going away in Py3k? Did that change? I still find them useful when using a built-in function, and unlike reduce(), I have no trouble reading and understanding such code. -- --Guido van Rossum (home page: htt

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Collin Winter
On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/21/06, Collin Winter <[EMAIL PROTECTED]> wrote: > > I thought map() and filter() were going away in Py3k? Did that change? > > I still find them useful when using a built-in function, and unlike > reduce(), I have no trouble reading and

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Guido van Rossum
On 8/21/06, Collin Winter <[EMAIL PROTECTED]> wrote: > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 8/21/06, Collin Winter <[EMAIL PROTECTED]> wrote: > > > I thought map() and filter() were going away in Py3k? Did that change? > > > > I still find them useful when using a built-in

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Fredrik Johansson
On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Perhaps there could be (or is there already?) a helper in itertools > that iterates over multiple iterables padding the shorter inputs with > None to the length of the longest one. I think the most convenient solution would be to handle thi

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Guido van Rossum
On 8/21/06, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Perhaps there could be (or is there already?) a helper in itertools > > that iterates over multiple iterables padding the shorter inputs with > > None to the length of the longest

Re: [Python-3000] Google Sprint Ideas

2006-08-21 Thread martin
Zitat von Alexander Belopolsky <[EMAIL PROTECTED]>: > > Alexander Belopolsky schrieb: > >> For Py3k, I would like to suggest a buffer protocol modelled > >> after iovec structure that is used by the readv system call. > > > > -1 > > What is this -1 for: > > a) buffer protocol in Py3k? > b) multise

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Fredrik Johansson
On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/21/06, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > Perhaps there could be (or is there already?) a helper in itertools > > > that iterates over multiple iterables paddin

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Guido van Rossum
On 8/21/06, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 8/21/06, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > > > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > > Perhaps there could be (or is there already?) a helpe

Re: [Python-3000] [Python-Dev] What should the focus for 2.6 be?

2006-08-21 Thread Josiah Carlson
Talin <[EMAIL PROTECTED]> wrote: [snip] > I've been thinking about the transition to unicode strings, and I want > to put forward a notion that might allow the transition to be done > gradually instead of all at once. > > The idea would be to temporarily introduce a new name for 8-bit strings

Re: [Python-3000] [Python-Dev] What should the focus for 2.6 be?

2006-08-21 Thread Jean-Paul Calderone
On Mon, 21 Aug 2006 14:21:30 -0700, Josiah Carlson <[EMAIL PROTECTED]> wrote: > >Talin <[EMAIL PROTECTED]> wrote: >[snip] >> I've been thinking about the transition to unicode strings, and I want >> to put forward a notion that might allow the transition to be done >> gradually instead of all at on

Re: [Python-3000] [Python-Dev] What should the focus for 2.6 be?

2006-08-21 Thread Guido van Rossum
On 8/21/06, Josiah Carlson <[EMAIL PROTECTED]> wrote: > As we approach Py3k, I again ask, "what are the compelling features?" > Wholesale breakage of anything that uses ascii strings as text or binary > data? A completely changed IO stack (requiring re-learning of everything > known about Python IO

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Michael Urman
On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I'd like map(f, a, b) to be the same as to (f(*x) for x in zip(a, b)) > so we have to explain less. (And I think even map(f, *args) === (f(*x) > for x in zip(*args)).) Should map(None, a, b) == zip(a, b), leaving python with multiple ways t

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Collin Winter
On 8/21/06, Michael Urman <[EMAIL PROTECTED]> wrote: > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > I'd like map(f, a, b) to be the same as to (f(*x) for x in zip(a, b)) > > so we have to explain less. (And I think even map(f, *args) === (f(*x) > > for x in zip(*args)).) > > Should m

Re: [Python-3000] [Python-Dev] What should the focus for 2.6 be?

2006-08-21 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 8/21/06, Josiah Carlson <[EMAIL PROTECTED]> wrote: >> When >> everyone has to rewrite their code, they are going to ask, "Why don't I >> just stick with the maintenance 2.x? It's going to be maintained for a >>

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Guido van Rossum
On 8/21/06, Collin Winter <[EMAIL PROTECTED]> wrote: > On 8/21/06, Michael Urman <[EMAIL PROTECTED]> wrote: > > On 8/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > I'd like map(f, a, b) to be the same as to (f(*x) for x in zip(a, b)) > > > so we have to explain less. (And I think even map