[Python-Dev] How to make _sre.c compile w/ C++? (original) (raw)

Anthony Baxter anthony at interlink.com.au
Tue Apr 18 04:00:23 CEST 2006


On Tuesday 18 April 2006 11:27, skip at pobox.com wrote:

During the 16-bit pass, SRECHAR expands to PyUNICODE, so the call to sreliteraltemplate is incorrect. Any ideas how to fix things?

I thought (but haven't had time to test) that making getstring return a union that's either SRE_CHAR* or Py_UNICODE* would make the problem go away.

-- Anthony Baxter <anthony at interlink.com.au> It's never too late to have a happy childhood.



More information about the Python-Dev mailing list