BJörn Lindqvist wrote:
> I have often wanted something similar to that for global
> variables, instead of the global declaration:
>
> cache = None
> def init():
> if not global.cache:
> global.cache = init_cache()
Redirected since this seemed like a Python 3000 kind of request. I
like
On 6/30/06, Steven Bethard <[EMAIL PROTECTED]> wrote:
> BJörn Lindqvist wrote:
> > I have often wanted something similar to that for global
> > variables, instead of the global declaration:
> >
> > cache = None
> > def init():
> > if not global.cache:
> > global.cache = init_cache()
>
>
On 6/30/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 6/30/06, Steven Bethard <[EMAIL PROTECTED]> wrote:
> > BJörn Lindqvist wrote:
> > > I have often wanted something similar to that for global
> > > variables, instead of the global declaration:
> > >
> > > cache = None
> > > def init():
>
On 6/30/06, Steven Bethard <[EMAIL PROTECTED]> wrote:
> On 6/30/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> > On 6/30/06, Steven Bethard <[EMAIL PROTECTED]> wrote:
> > > BJörn Lindqvist wrote:
> > > > I have often wanted something similar to that for global
> > > > variables, instead of the g