[Python-Dev] Re: Inline code in other languages

Ka-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