Re: Python Feature Request: Explicit variable declarations

2007-04-20 Thread Bjoern Schliessmann
Dennis Lee Bieber wrote: > Unless it should be interpreted as (C/C)++, which would result in > 2 No, since postfix ++ "returns before and increments after". But what you say is true for ++(C/C). Regards, Björn -- BOFH excuse #274: It was OK before you touched it. -- http://mail.python.org

Re: Python Feature Request: Explicit variable declarations

2007-04-20 Thread Eduardo \"EdCrypt\" O. Padoan
> The thoughts of the inventor of Python on "Adding Optional Static > Typing to Python" are at > http://www.artima.com/weblogs/viewpost.jsp?thread=86641 > . I wonder if the idea will be implemented in Python 3.0. No. He says it in another newer post and in PEP 3099, AFAIK. -- EduardoOPadoan (e

Re: Python Feature Request: Explicit variable declarations

2007-04-20 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hello. Please tell me whether this feature request is sane (and not > done before) for python so it can be posted to the python-dev mailing > list. I should say first that I am not a professional programmer with > too much technical knowledge. > > I would like to have

Re: Python Feature Request: Explicit variable declarations

2007-04-20 Thread Beliavsky
On Apr 14, 6:21 am, [EMAIL PROTECTED] wrote: > Hello. Please tell me whether this feature request is sane (and not > done before) for python so it can be posted to the python-dev mailing > list. I should say first that I am not a professional programmer with > too much technical knowledge. > > I wo

Re: Python Feature Request: Explicit variable declarations

2007-04-20 Thread Gabriel Genellina
En Fri, 20 Apr 2007 00:41:04 -0300, Alex Martelli <[EMAIL PROTECTED]> escribió: > Jorgen Grahn <[EMAIL PROTECTED]> wrote: > >> As a C and C++ programmer (not a C/C++ programmer), I have to say that > > Yeah, I wonder, what's C divided by C++ -- maybe about 0.731...? C/C++ == 1 most of the time (b

Re: Python Feature Request: Explicit variable declarations

2007-04-20 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Alex Martelli wrote: > Jorgen Grahn <[EMAIL PROTECTED]> wrote: > >> As a C and C++ programmer (not a C/C++ programmer), I have to say that > > Yeah, I wonder, what's C divided by C++ -- maybe about 0.731...? Isn't it 1 unless `C` is 0? The increment happens after the di

Re: Python Feature Request: Explicit variable declarations

2007-04-19 Thread Alex Martelli
Jorgen Grahn <[EMAIL PROTECTED]> wrote: > As a C and C++ programmer (not a C/C++ programmer), I have to say that Yeah, I wonder, what's C divided by C++ -- maybe about 0.731...? Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Feature Request: Explicit variable declarations

2007-04-19 Thread Kumar McMillan
On 4/14/07, James Stroud <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > But, if you have masochistic tendencies and want a lot of overhead in > your programming, you can always bind yourself mercilessly to classes: > > > class C(object): >declared = ['bob', 'carol', 'ted', 'alice'] >

Re: Python Feature Request: Explicit variable declarations

2007-04-19 Thread Jorgen Grahn
On 14 Apr 2007 03:21:18 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > I would like to have something like the "option explicit" statement in > Visual Basic which turns on C-like checking for declaration of > variables. This is highly helpful for people who are coming from C/C+ > +, for

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread Ganesan Rajagopal
> "Martin" == Martin v Löwis <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] schrieb: >> Hello. Please tell me whether this feature request is sane (and not >> done before) for python so it can be posted to the python-dev mailing >> list. I should say first that I am not a professional program

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread jamadagni
On Apr 14, 3:56 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > for prior discussion. The request is sane, but is also incomplete: there > is no syntax suggested for the actual declarations of local variables, > and no discussion whether this is meant to apply to local variables > only, or also

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread Alex Martelli
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: ... > In Python, the "variable" NAME does NOT define storage; unlike most > other classical languages where the "variable name" is a storage > address, and the value of the RHS is COPIED to that address. Python does > not do such copying. Names

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread Steven D'Aprano
On Sat, 14 Apr 2007 15:55:03 +, Dennis Lee Bieber wrote: > Names are references to the RHS object itself. > > a = 5 > > means that somewhere in memory is an integer object with the value "5"; > the name "a" is now "pasted onto" that integer object. That's not correct, as it implies t

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread nikolas pontikos
Army1987 wrote: > "jamadagni" <[EMAIL PROTECTED]> ha scritto nel messaggio > news:[EMAIL PROTECTED] >>> Languages like Perl and VB need a strict mode because they will >>> auto-vivify variable for you. I.e. they will bring variables to life >>> with defined or undefined values if you use them in

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread Army1987
"jamadagni" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] >> Languages like Perl and VB need a strict mode because they will >> auto-vivify variable for you. I.e. they will bring variables to life >> with defined or undefined values if you use them in a l-value (left hand >>

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread jamadagni
> Languages like Perl and VB need a strict mode because they will > auto-vivify variable for you. I.e. they will bring variables to life > with defined or undefined values if you use them in a l-value (left hand > side of an assignment) without having declared them prior. If you do > that in Pyth

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread nikolas pontikos
[EMAIL PROTECTED] wrote: > Hello. Please tell me whether this feature request is sane (and not > done before) for python so it can be posted to the python-dev mailing > list. I should say first that I am not a professional programmer with > too much technical knowledge. > > I would like to have so

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > Hello. Please tell me whether this feature request is sane (and not > done before) for python so it can be posted to the python-dev mailing > list. I should say first that I am not a professional programmer with > too much technical knowledge. I believe it has been req

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread James Stroud
[EMAIL PROTECTED] wrote: > Hello. Please tell me whether this feature request is sane (and not > done before) for python so it can be posted to the python-dev mailing > list. I should say first that I am not a professional programmer with > too much technical knowledge. > > I would like to have so

Re: Python Feature Request: Explicit variable declarations

2007-04-14 Thread Paddy
On Apr 14, 11:21 am, [EMAIL PROTECTED] wrote: > Hello. Please tell me whether this feature request is sane (and not > done before) for python so it can be posted to the python-dev mailing > list. I should say first that I am not a professional programmer with > too much technical knowledge. > > I w

Python Feature Request: Explicit variable declarations

2007-04-14 Thread samjnaa
Hello. Please tell me whether this feature request is sane (and not done before) for python so it can be posted to the python-dev mailing list. I should say first that I am not a professional programmer with too much technical knowledge. I would like to have something like the "option explicit" st