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/2001-August/017199.html below:

Inline code in other languages

[Python-Dev] Re: Inline code in other languages [Python-Dev] Re: Inline code in other languagesKa-Ping Yee ping@lfw.org
Wed, 22 Aug 2001 18:02:46 -0700 (PDT)
> Slick indeed!  I don't see much that's beyond Python's grasp.  The
> syntax of course would be more Pythonic,

Perhaps:

    import inline
    inline.C('''

    void greet(char* str)
        {
        printf("%s, %s, %s, lovely %s\n", str, str, str, str);
        }

    ''')

    from inline.C import greet
    greet('spam')

...?


-- ?!ng




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