win32 python as a dll?

Gordon McMillan gmcm at hypernet.com
Wed Jul 7 23:56:39 EDT 1999


Scott Wolford writes:

> Now I'm a little confused. 

I was trying to figure out how to tell you that politely...

> Python does seem to be a dll (?); I found
> python15.dll in winnt/system32 directory. 

Correct. That's 99.999+% of python. python.exe does nothing but load 
it and call Py_Main.

> But I can't find
> python15_d.dll anywhere. Was that supposed to be installed? 

Nope, you have to build it.

> I think
> python15.dll bombs because it was compiled as optimized using the M$
> compiler and that optimizer has problems (at least w/ O2; I've been
> pretty successfull w/ O1). 

Probably not. It's been pretty thoroughly tested at this point.

> So I want to use python15_d but I can't
> find the dll.
> 
> Any help would be appreciated,

Probably the most common mistake of Windows embedders is to link to 
the wrong C runtime lib. Python uses Multithreaded DLL.

But you might have done something more creative. Telling us how and 
when it bombs complete with messages and as small a code sample as 
possible will get you more and better answers.


- Gordon




More information about the Python-list mailing list