News for hackers. Stuff that matters.
Re:Nimrod by Example by Hello71 on Thursday July 17, 2014 @10:46PM (#8051428)

    from ctypes import *
    libc = CDLL("libc.so.6")
    libc.printf("Hello %s!\n", "world")
    from sys import stderr
    libc.fprintf(stderr.fileno(), "Error in line %d\n", nr)
although I don't know why in the world you would want to use printf instead of native string formatting
Re:Nimrod by Example by eric_bullington on Friday July 18, 2014 @03:58AM (#8052095)
I presume the printf was just to show Nimrod's easy C interop.