Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'attribute': 0.07; 'python': 0.08; 'url:peps': 0.09; 'error:': 0.10; 'dave.': 0.16; 'from:addr:dave': 0.16; 'installed,': 0.16; 'received:173.11': 0.16; '>>>': 0.18; 'subject:Questions': 0.18; 'received:192.168.1.100': 0.23; 'url:dev': 0.23; 'process,': 0.25; 'module': 0.26; 'skip:[ 10': 0.27; 'example': 0.28; "skip:' 10": 0.29; 'print': 0.29; 'header:User-Agent:1': 0.33; 'to:addr:python- list': 0.33; 'object': 0.33; 'someone': 0.34; 'something': 0.35; 'url:python': 0.36; 'none': 0.36; 'link,': 0.36; 'but': 0.37; 'could': 0.37; 'received:192': 0.38; 'url:org': 0.39; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.40; 'got': 0.40; 'received:173': 0.64; 'further': 0.64; 'easy_install': 0.84; 'yielded': 0.84; 'surprise': 0.97 Date: Sat, 28 Jan 2012 07:54:31 -0600 From: David Lambert User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 MIME-Version: 1.0 To: python-list@python.org Subject: Questions regarding the daemon module. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327759344 news.xs4all.nl 6872 [2001:888:2000:d::a6]:54035 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19547 I was looking for a simple way to daemonize a Python process, and found: http://www.python.org/dev/peps/pep-3143/ I used easy_install to add this package (I thought), but when I attempted to use the example in the above link, I got the error: AttributeError: 'module' object has no attribute 'DaemonContext' To my surprise when looking at the module that was installed, I found something completely different to what was in the documentation: >>> dir(daemon) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', 'basic_daemonize', 'checkPID', 'daemonize', 'errno', 'os', 'sys', 'writePID'] >>> >>> print daemon.__doc__ None >>> >>> print daemon.daemonize.__doc__ None >>> Further experimentation with this module yielded a working daemon, but I am concerned regarding its parentage and lack of documentation. Could someone explain these discrepancies? Best regards, Dave.