By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,759 Members | 1,778 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,759 IT Pros & Developers. It's quick & easy.

Pyrex: problem with blanks in string

P: n/a
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
Jun 4 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hans Terlouw wrote:
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:
It works for me. Try posting your error messages and versions of
Pyrex/Python/GCC. Better yet, do this in the Pyrex mailing list rather
than here.
--
Michael Hoffman
Jun 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.