A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-June/066769.html below:

[Python-Dev] once [was: Simple Switch statementZ]

[Python-Dev] once [was: Simple Switch statementZ] [Python-Dev] once [was: Simple Switch statementZ]Christos Georgiou tzot at mediconsa.com
Thu Jun 29 15:57:10 CEST 2006
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>


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4