Re: "no variable or argument declarations are necessary."
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Wed, 05 Oct 2005 10:59:27 +0100
Brian Quinlan wrote:
I believe that "global" is the one Python statement that isn't actually executable, and simply conditions the code generated during compilation (to bytecode).Paul Rubin wrote:
Brian Quinlan <brian@xxxxxxxxxxxx> writes:
Have those of you who think that the lack of required declarations in Python is a huge weakness given any thought to the impact that adding them would have on the rest of the language? I can't imagine how any language with required declarations could even remotely resemble Python.
Python already has a "global" declaration;
Which is evaluated at runtime, does not require that the actual global variable be pre-existing, and does not create the global variable if not actually assigned. I think that is pretty different than your proposal semantics.
Hard to see why someone would want to use a global declaration unless they were intending to assign to it, given the sematnics of access.
[...]
regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/
.
- References:
- "no variable or argument declarations are necessary."
- From: James A . Donald
- Re: "no variable or argument declarations are necessary."
- From: Jean-François Doyon
- Re: "no variable or argument declarations are necessary."
- From: James A . Donald
- Re: "no variable or argument declarations are necessary."
- From: Michael
- Re: "no variable or argument declarations are necessary."
- From: George Sakkis
- Re: "no variable or argument declarations are necessary."
- From: Antoon Pardon
- Re: "no variable or argument declarations are necessary."
- From: Steven D'Aprano
- Re: "no variable or argument declarations are necessary."
- From: Antoon Pardon
- Re: "no variable or argument declarations are necessary."
- From: Paul Rubin
- Re: "no variable or argument declarations are necessary."
- From: Steve Holden
- Re: "no variable or argument declarations are necessary."
- From: Antoon Pardon
- Re: "no variable or argument declarations are necessary."
- From: Brian Quinlan
- "no variable or argument declarations are necessary."
- Prev by Date: Re: Python script to install network printers
- Next by Date: Re: dictionary interface
- Previous by thread: Re: "no variable or argument declarations are necessary."
- Next by thread: Re: "no variable or argument declarations are necessary."
- Index(es):
Relevant Pages
|