H
Hans Terlouw
Hi,
When trying to wrap C code using Pyrex, I encountered a strange problem with a
piece of pure Python code. I tried to isolate the problem. The following code
causes Pyrex to generate C code which gcc cannot compile:
class Axis:
axtype = "unknown type of axis"
def __init__(self):
pass
When I substitute the blanks in the string for something else, then the problem
disappears:
class Axis:
axtype = "unknown_type_of_axis"
def __init__(self):
pass
Does anybody have an idea?
Hans Terlouw
When trying to wrap C code using Pyrex, I encountered a strange problem with a
piece of pure Python code. I tried to isolate the problem. The following code
causes Pyrex to generate C code which gcc cannot compile:
class Axis:
axtype = "unknown type of axis"
def __init__(self):
pass
When I substitute the blanks in the string for something else, then the problem
disappears:
class Axis:
axtype = "unknown_type_of_axis"
def __init__(self):
pass
Does anybody have an idea?
Hans Terlouw