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]) <*>
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
"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
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-
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.
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
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