Re: [Python-3000] Is this really a SyntaxError?

2008-07-30 Thread Raymond Hettinger
Yea! I'm very happy about this. - Original Message - From: "Guido van Rossum" <[EMAIL PROTECTED]> To: "Amaury Forgeot d'Arc" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, July 30, 2008 9:03 PM Subject: Re: [Python-3000] Is this really a SyntaxError? Cool. I hope others can review, and

Re: [Python-3000] Is this really a SyntaxError?

2008-07-30 Thread Guido van Rossum
Cool. I hope others can review, and you should ask Barry if this is okay for beta3. On Wed, Jul 30, 2008 at 6:17 PM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > 2008/7/30 Guido van Rossum <[EMAIL PROTECTED]>: >> On Wed, Jul 30, 2008 at 2:34 AM, Amaury Forgeot d'Arc >> <[EMAIL PROTECTED]> wr

Re: [Python-3000] Is this really a SyntaxError?

2008-07-30 Thread Amaury Forgeot d'Arc
2008/7/30 Guido van Rossum <[EMAIL PROTECTED]>: > On Wed, Jul 30, 2008 at 2:34 AM, Amaury Forgeot d'Arc > <[EMAIL PROTECTED]> wrote: > >> I hope this patch is simple enough for you: >> >> Index: Grammar/Grammar >> === >> --- Grammar/Gr

Re: [Python-3000] Is this really a SyntaxError?

2008-07-30 Thread Guido van Rossum
On Wed, Jul 30, 2008 at 2:34 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > I hope this patch is simple enough for you: > > Index: Grammar/Grammar > === > --- Grammar/Grammar (revision 65298) > +++ Grammar/Grammar (work

Re: [Python-3000] Is this really a SyntaxError?

2008-07-30 Thread Guido van Rossum
On Tue, Jul 29, 2008 at 11:06 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: >>> def grouper(n, iterable, fillvalue=None): >>> "grouper(3, 'abcdefg', 'x') --> abc def gxx" >>> args = [iter(iterable)] * n >>> kwds = dict(fillvalue=fillvalue) >>> return izip_longest(*args, **kw

Re: [Python-3000] MemoryError oddities

2008-07-30 Thread Benjamin Peterson
On Wed, Jul 30, 2008 at 11:36 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > FWIW, are there any legitimate occurrences of OverflowError in Py3k > now that ints have unlimited range? I believe not being able to convert an int to Py_ssize_t with PyNumber_AsSsize_t is a valid use. > > -- > --Gu

Re: [Python-3000] MemoryError oddities

2008-07-30 Thread Guido van Rossum
On Tue, Jul 29, 2008 at 10:07 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> +1 OverflowErrors should probably by reserved for numeric overflows. > > In a sense, passing sys.maxsize as a string size *is* a numeric > overflow - the size can't be represented in the available variable. I'm sure

Re: [Python-3000] Any Built in Session Handling?

2008-07-30 Thread Benjamin Peterson
On Wed, Jul 30, 2008 at 9:37 AM, vin vin <[EMAIL PROTECTED]> wrote: > HI there? > > Do you planned to provide any built in session handling for web applications > in python 3000? No. Almost all of the standard Python web frameworks provide session management. > > we should cover the basic web thi

[Python-3000] Any Built in Session Handling?

2008-07-30 Thread vin vin
HI there? Do you planned to provide any built in session handling for web applications in python 3000? we should cover the basic web things to provide the Great Web Language right? Because as a normal web developer she would search for the basic things first if not provided, she may disappointed

Re: [Python-3000] Bytes and unicode conversion in C extensions

2008-07-30 Thread M.-A. Lemburg
On 2008-07-30 07:17, Andrew McNamara wrote: What about a new keyword argument to the constructor, "encoding". If specified, *only* accept unicode (and do the conversion internally). Would that apply to keys, values, or both? I admit that I deliberately glossed over that. 8-) One option is to

Re: [Python-3000] Is this really a SyntaxError?

2008-07-30 Thread Amaury Forgeot d'Arc
Guido van Rossum wrote: > On Tue, Jul 29, 2008 at 3:51 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote: >> Georg Brandl wrote: >>> >>> Georg Brandl schrieb: Someone just wrote to the docs mailing list and reported that the itertools documentation for Py3k contains this recipe: >