[Python-3000] Single-line blocks?

2007-03-23 Thread Aahz
IIRC, there was some discussion about removing single-line blocks like this one in 3.0: if foo: bar() However, I can't find any discussion about making it happen, and it's not in PEP 3099. Guido, does this need a PEP? Do you want it to happen? -- Aahz ([EMAIL PROTECTED]) <*>

[Python-3000] telnetlib [was: Question about PEP 3001 and fixing API flaws]

2007-03-23 Thread Jim Jewett
On 3/21/07, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > I think so too. Aliasing names is easy to do, but uglifies things. > Plus, if you do it that way, can you still emit DeprecationWarnings? Sure. def oldname(arg): "Deprecated version of newname" warn("Use newname instead

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Terry Reedy
"Aahz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | IIRC, there was some discussion about removing single-line blocks like | this one in 3.0: | |if foo: bar() | | However, I can't find any discussion about making it happen, and it's | not in PEP 3099. Guido, does this need a

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Guido van Rossum
I know this was in my early lists of "clean up the language" plans for Py3k, but I think it's not worth the hassle. On 3/23/07, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Aahz" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | IIRC, there was some discussion about removing single-

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Aahz
On Fri, Mar 23, 2007, Guido van Rossum wrote: > > I know this was in my early lists of "clean up the language" plans for > Py3k, but I think it's not worth the hassle. Should it be added to PEP 3099? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Typing is cheap.

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Georg Brandl
Aahz schrieb: > On Fri, Mar 23, 2007, Guido van Rossum wrote: >> >> I know this was in my early lists of "clean up the language" plans for >> Py3k, but I think it's not worth the hassle. > > Should it be added to PEP 3099? I've never seen it proposed by anyone recently. So, I think there's no nee

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Baptiste Carvello
Aahz a écrit : > IIRC, there was some discussion about removing single-line blocks like > this one in 3.0: > > if foo: bar() > > However, I can't find any discussion about making it happen, and it's > not in PEP 3099. Guido, does this need a PEP? Do you want it to happen? please no. Singl