[python-win32] A shameless COM question

Waldemar Osuch waldemar.osuch at gmail.com
Wed Apr 2 08:12:54 CEST 2008


On Tue, Apr 1, 2008 at 7:11 PM, Marcus Low <marcus at internetnowasp.net> wrote:
> Hi Tim,
>
>  Thank you for the alternative view, yes i have the twisted downloaded and
>  inspecting it prior to this question.
>  My only concern would be this is because the said COM  component is made to
>  run optimally in Windows and i am not sure i have the same
>  assurance when it comes to Twisted.

Nobody will give assurances I am afraid but I can give you anecdotal evidence.
I have a number of Twisted based services running in Windows environment
reliably for years.  One of them is even based on smtp.SMTPFactory.  Admittedly
it does not need to be high performance.  It listens for emails and
then dispatches
requested Scheduled Task on the batch server.

>  I needed the events because i need to
>  inspect and log in nearly every level of the smtp transaction so just
>  creating
>  a simple smtp was not the goal, the goal is to create a full fledge mail
>  server with crazy control and logging.

If control and logging is you main goal I would definitely recommend Twisted.

>  I am not familiar with how Twisted is implemented in Windows, if it uses the
>  specific windows apis and asynch model winsock2 directly for optimal
>  performance.
>
>  So do you still think i should stick with twisted?

Well, it depends.
In my case sticking with Twisted worked but your situation maybe different.

  Are you are the only Python guy in the sea of .Net programmers?
  Do you have to fight political battles about technology in your office?
  Is the deadline looming?
  Do you have patience to learn "Twisted way" of programming?

Check out http://twistedmatrix.com/projects/mail/documentation/examples/emailserver.tac
for a simple example.

Waldemar


More information about the python-win32 mailing list