Hi,
I've seen this problem already a while ago: MSVC 2003 has a problem with
strings that are longer than 2KB. Honestly, a compiler that chokes on 2048
tiny bytes!
This can obviously affect string data in the source code, which I worked
around back then by splitting long strings up and concatenating them at
runtime. However, now I have the problem that a function in lxml has a
docstring(!) that is too long, so there is not much I can do outside Cython
(except for cutting down the documentation, but that would be stupid, right?).
The obvious way to work around this (may I say it?) buggy compiler is to do
the splitting in Cython and reconstruct the complete string at module
initialisation time. Essentially, this Python code
a = "... loads ... of ... bytes ... "
would map to the (pre-built) equivalent of this:
a = "... loads" + " ... of " + "... bytes " + "... "
Before I start working on a hack like this, are there other ideas how to deal
with this problem?
Thanks for any ideas,
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev