Python 2.4.2 using msvcrt71.dll on Win and compatibility issues
Christoph Zwerschke
cito at online.de
Tue Feb 7 16:16:38 EST 2006
Martin v. Löwis wrote:
> In general, the only Microsoft-supported strategy is that you
> must use only a single msvcrt in the entire application. So
> either recompile PostGres, or recompile Python.
Hm, that's really inconvenient (even more so under Windows).
> In the specific case, having PQprint print to a string (rather
> than to a file) might work. OTOH, it appears there is no "print
> to string" code in postgres.
Yes, there is only PQprint which prints to a stream.
> So here is another strategy: flush the stream before going
> into postgres, then obtain the fileno() of the stream, and
> fdopen it with postgres' iostreams library. That might also
> be tricky to implement, but could work.
I understand what you mean. But the Postgres dll provides no means to
fdopen a new stream.
-- Christoph
More information about the Python-list
mailing list