[Python-Dev] once [was: Simple Switch statementZ]
Christos Georgiou
tzot at mediconsa.com
Thu Jun 29 15:57:10 CEST 2006
More information about the Python-Dev mailing list
Thu Jun 29 15:57:10 CEST 2006
- Previous message: [Python-Dev] once [was: Simple Switch statementZ]
- Next message: [Python-Dev] once [was: Simple Switch statementZ]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I haven't followed the complete discussion about once, but I would assume it
would be used as such:
once <name> = <expression>
that is, always an assignment, with the value stored as a cellvar, perhaps,
on first execution 0f the code.
Typically I would use it as:
def function(a):
once pathjoin = os.path.join
<etc>
- Previous message: [Python-Dev] once [was: Simple Switch statementZ]
- Next message: [Python-Dev] once [was: Simple Switch statementZ]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list