[Twisted-Python] win32all and spawnProcess

VAN DER HEIJDEN Maarten mvanderheijden at fininfo.fr
Thu Apr 24 11:43:47 EDT 2003

Hello ,

twisted/internet/defaults.py contains the function spawnProcess 

This function doesn't seem to work on windows, and contains the following
   # This is possible, just needs work - talk to itamar if you want this.

Who is Itamar ?

Thanks in advance,


  def spawnProcess(self, processProtocol, executable, args=(), env={},
                     uid=None, gid=None, usePTY = 0):
        p = platform.getType()
        if p == 'posix':
            if usePTY:
                return process.PTYProcess(self, executable, args, env, path,
processProtocol, uid, gid, usePTY)
                return process.Process(self, executable, args, env, path,
processProtocol, uid, gid)
        #elif p == "win32":
        #    if win32process:
        #        threadable.init(1)
        #        import win32eventreactor
        #        return win32eventreactor.Process(self, processProtocol,
executable, args, env, path)
        #    else:
        #        raise NotImplementedError, "process not available since
win32all is not installed"
            raise NotImplementedError, "process only available in this
reactor on POSIX"

This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this 
message in error, please delete it and immediately notify the 
sender. Any use not in accord with its purpose, any dissemination 
or disclosure, either whole or partial, is prohibited except formal 
approval. Neither FININFO (nor any of its subsidiaries or affiliates) 
shall be liable for the message if modified, altered, falsified, edited 
or diffused without authorization. 

More information about the Twisted-Python mailing list