[Python-Dev] once [was: Simple Switch statementZ] (original) (raw)
Christos Georgiou tzot at mediconsa.com
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 =
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
- 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 ]