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

Inline code in other languages

[Python-Dev] Re: Inline code in other languages [Python-Dev] Re: Inline code in other languagesBarry A. Warsaw barry@zope.com
Wed, 22 Aug 2001 21:20:51 -0400
>>>>> "KY" == Ka-Ping Yee <ping@lfw.org> writes:

    >> Slick indeed!  I don't see much that's beyond Python's grasp.
    >> The syntax of course would be more Pythonic,

    KY> 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')

    KY> ...?

Works for me!
-Barry



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