blob: 217e7bf9e2d31a4e93633e170b9ffa693a2d0238 [file] [log] [blame] [edit]
# file: runme.py
import example
# The first parameter and any strings passed here need to be byte strings.
example.printf(b'Testing\n')
example.printf(b'Testing %s %d %c %.0f\n', b'libffi', 1, 50, 3.0)
# The first two arguments need to be Unicode strings for Python 3, but the
# remaining arguments need to be bytes!
example.execlp('/bin/ls', 'ls', b'-l')