Re: [Python-Dev] "as" keyword woes

2008-12-08 Thread Paul Boddie
On Monday 08 December 2008 22:54:41 Guido van Rossum wrote: > > From my experience with SQL, it's nearly as bad as Python in that > every single one of the 200+ reserved words in a typical > implementation cannot be used as a name in any context without using > double quotes. SQL is a big language

Re: [Python-Dev] "as" keyword woes

2008-12-08 Thread Guido van Rossum
On Sun, Dec 7, 2008 at 1:06 PM, Paul Boddie <[EMAIL PROTECTED]> wrote: > On Sat Dec 6 21:29:09 CET 2008, Guido van Rossum wrote: >> >> On Sat, Dec 6, 2008 at 11:38 AM, Warren DeLano >> wrote: >> > As someone somewhat knowledgable of how parsers work, I do not >> > understand why a method/attribute

Re: [Python-Dev] "as" keyword woes

2008-12-07 Thread Paul Boddie
On Sat Dec 6 21:29:09 CET 2008, Guido van Rossum wrote: > > On Sat, Dec 6, 2008 at 11:38 AM, Warren DeLano > wrote: > > As someone somewhat knowledgable of how parsers work, I do not > > understand why a method/attribute name "object_name.as(...)" must > > necessarily conflict with a standalone ke

Re: [Python-Dev] "as" keyword woes

2008-12-06 Thread Warren DeLano
> Date: Sat, 6 Dec 2008 12:13:16 -0800 (PST) > From: Carl Banks <[EMAIL PROTECTED]> > Subject: Re: "as" keyword woes > To: [EMAIL PROTECTED] > Message-ID: > > (snip) > > If you write a PEP, I advise you to try to sound less whiny and than > you have in this thread. > > (snip) Ehem, well,

Re: [Python-Dev] "as" keyword woes

2008-12-06 Thread Nick Coghlan
Warren DeLano wrote: > In other words we have lost the ability to refer to "as" as the > generalized OOP-compliant/syntax-independent method name for casting: Other possible spellings: # Use the normal Python idiom for avoiding keyword clashes # and append a trailing underscore new_object = old_o

Re: [Python-Dev] "as" keyword woes

2008-12-06 Thread Virgil Dupras
On 06 Dec 2008, at 20:38, Warren DeLano wrote: Date: Fri, 05 Dec 2008 22:22:38 -0800 From: Dennis Lee Bieber <[EMAIL PROTECTED]> Subject: Re: "as" keyword woes To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> I'm still in the dark as to what type of data could even inspire the us

Re: [Python-Dev] "as" keyword woes

2008-12-06 Thread Guido van Rossum
On Sat, Dec 6, 2008 at 11:38 AM, Warren DeLano <[EMAIL PROTECTED]> wrote: [...] > There, I assert that 'object.as(class_reference)' is the simplest and > most elegant generalization of this widely-used convention. Indeed, it > is the only obvious concise answer, if you are limited to using methods

Re: [Python-Dev] "as" keyword woes

2008-12-06 Thread Scott Dial
Warren DeLano wrote: > There, I assert that 'object.as(class_reference)' is the simplest and > most elegant generalization of this widely-used convention. Indeed, it > is the only obvious concise answer, if you are limited to using methods > for casting. How about "to"? Almost every language I ha

Re: [Python-Dev] "as" keyword woes

2008-12-06 Thread Warren DeLano
> Date: Fri, 05 Dec 2008 22:22:38 -0800 > From: Dennis Lee Bieber <[EMAIL PROTECTED]> > Subject: Re: "as" keyword woes > To: [EMAIL PROTECTED] > Message-ID: <[EMAIL PROTECTED]> > > I'm still in the dark as to what type of data could > even inspire the > use of "as" as an object name... A