Accessing "variables" in an extension module
christian at integration-x.com
Wed Dec 6 09:19:45 EST 2000
I would like to access "variables" (chars and ints) in a C module
extension for Python from my Python code. Is that possible?
If I wanted to improve the example from "Extending and Embedding the
Python Interpreter" like shown below, what would I need to add to the
spam.varstring = "test"
spam.varint = 5
Thanks in advance,
More information about the Python-list