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/066553.html below:

[Python-Dev] Simple Switch statement

[Python-Dev] Simple Switch statement [Python-Dev] Simple Switch statementFredrik Lundh fredrik at pythonware.com
Mon Jun 26 07:55:51 CEST 2006
Raymond Hettinger wrote:

> The static() keyword works like Forth's brackets for forcing 
> compile-time evaluation.  The issue for us is that unlike other Python 
> expressions, there are inconvenient limitiations on what can be 
> expressed inside:
> 
>    five = 5
>    eight = [8]
>    def f(x, six=6):
>           seven =  7
>           a = static(five + 4)    # this is legal
>           b = static(six + 4)      # this is illegal
>           c = static(seven + 4) # this is illegal
>           d = static(eight + [4]) # this is illegal

bzzt.  try again.

</F>

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