Re: win32com, BSTR, and null terminated strings

2006-02-06 Thread Matt Helm
"John Bauman" <[EMAIL PROTECTED]> writes: > "Matt Helm" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> However, what is the proper way to recover the actual string? I have >> been using: >> >>r.split("

Re: win32com, BSTR, and null terminated strings

2006-02-06 Thread Matt Helm
> It's perfectly good Python, though, so just forget about it or wrap it > in a "cstring(s)" function do you don't have to look at it! Thanks for the sanity check. I just wanted to make sure I was correct as well as right. Matt -- http://mail.python.org/mailman/listinfo/python-list

win32com, BSTR, and null terminated strings

2006-02-05 Thread Matt Helm
I am using win32com to access a third party COM interface but am having trouble using the string that is returned. The vendor's docs show the following method: HRESULT CookString(BSTR param_a, short buf_size, [out, retval] BSTR* result_b); param_a is a string to be processed. buf_size is

Re: Python as a Server vs Running Under Apache

2005-12-29 Thread Matt Helm
<[EMAIL PROTECTED]> writes: > Running under Apache is nice if you need other apache services like > proxying, mod_rewrite, some of the accelerated static file serving > plugins, etc. Not needed, this is web services only. That is, Apache is needed, but only to handle the PHP consumers of the web

Python as a Server vs Running Under Apache

2005-12-28 Thread Matt Helm
I am starting the design phase of a large project (ERP) where the backend will mostly be Python (or Ruby) providing web services. In this type of usage, is there any benenfit to running under Apache as opposed to a pure Python solution using Medusa, TwistedMatrix, or the like? Thanks, Matt --