Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Python strings should stay immutable.
#!/usr/bin/env python
from ctypes import CDLL
foo = "Fiesta"
bar = "Fiesta"
#Change foo with low level C
libc = CDLL('')
libc.strcpy(foo, "Nachos")
print "We'll meet at the", bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment