I thought I'd 'got' globals but...

meridian stephen.dover at onetel.co.uk
Thu Jul 6 07:20:23 EDT 2006


Bruno Desthuilliers wrote:
> def doIt(name=None):
>   global gname
>   if name is None:
>     name = gname
>   else:
>     gname = name
> 

Thanks Bruno, works a treat...




More information about the Python-list mailing list