[Twisted-Python] Re: Implementing a custom FTP server

Fred L. Drake, Jr. fdrake at acm.org
Tue Sep 7 15:14:14 EDT 2004

On Tuesday 07 September 2004 02:47 pm, Bob Ippolito wrote:
 > uh, of course sys.platform == 'posix'
 > I dunno what the heck he is doing, but twistd has always worked fine
 > for me on OS X.

Mac OS X 10.2.8 says this:

Python 2.2 (#1, 07/14/02, 23:25:09)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> os.name
>>> sys.platform

On Windows, I expect os.name == "nt" and sys.platform[:3].lower() == "win".


Fred L. Drake, Jr.  <fdrake at acm.org>

More information about the Twisted-Python mailing list