A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/cython/cython/issues/4287 below:

[ENH] Allow compile-time conditionals · Issue #4287 · cython/cython · GitHub

Is your feature request related to a problem? Please describe.
Pure python version of

IF "there is a chance":
    from __future__ import braces
ELIF 6 + 9 + 6 * 9 != 69:
    wocky_slush = "yummy"
ELSE:
    print("delicious spam")

Describe the solution you'd like
Suggestions:

1) cython.X
if cython.conmpile_time(condition):
    ...
elif cython.conmpile_time(condition):
    ...
else:
    ...
2) with
with cython.conmpile_time:
    if condition:
        ...
    ...  # regular conditional syntax
3) with + cython.X

Thought it looks quite ugly

with cython.IF(condition):
    ...
with cython.ELIF(condition):
    ...
with cython.ELSE:
    ...
4) comment
if condition:  # cython: compiled
    ...
elif condition:
    ...
else:
    ...

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