Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.045 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'see:': 0.07; 'subject:adding': 0.07; 'separating': 0.09; 'cc:addr:python-list': 0.10; 'resort': 0.16; 'sys.modules': 0.16; 'code.': 0.20; 'received:mail-bk0-f46.google.com': 0.22; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'wrote': 0.26; 'received:209.85.214.46': 0.27; 'message- id:@mail.gmail.com': 0.27; 'rest': 0.28; 'environment': 0.29; 'factor': 0.29; 'code': 0.31; 'received:google.com': 0.34; 'received:209.85': 0.35; 'test': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'received:209.85.214': 0.39; 'short': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'concerns': 0.65; 'url:2011': 0.72; 'subject:mode': 0.84; 'url:03': 0.84; 'worth,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=W00/5EeArY8rf0UcYBYXaMnj/ljs1t2MlOJo5YOXZyQ=; b=EUFbGBMOa5IITvJhDTMn6LIbCpshHLw2PRg6AcLIuxTgG13OOp/ULojLYrKFCwIkD/ FJgCzK4dJhgyildq3hOri82WMFiQPabchD+9ms1D8KbvJAZc5M9C0jwPmoiqFZpZ+ruI QNc+vZ30BSKQyquMeftyQN1Oz5eCpluP/sTLbB6qAlRwwuJjHKlhA0sllGX+GGa8U2g+ TVlDm7vfKY+wmkcbbJWihkM6fBYndErOuLrs6PJdHQLiO0zmumhMma2Hl8Zd5zbOLQeS h1PZCCc2o6wqwxIIqqavaIf1V6dD2lswlnHfSYSmCqJqXyS2vT5vIP3De8X5CVmj16/X c9GA== MIME-Version: 1.0 In-Reply-To: References: From: Devin Jeanpierre Date: Wed, 4 Jul 2012 12:08:38 -0400 Subject: Re: adding a simulation mode To: andrea crotti Content-Type: text/plain; charset=UTF-8 Cc: python-list 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341418161 news.xs4all.nl 6952 [2001:888:2000:d::a6]:52479 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24868 For what it's worth, this is the reason that Allen Short wrote Exocet. > This way, you can test your code without having to resort to sys.modules > hackery, and you can better factor your applications by separating > configuration and environment concerns from the rest of your code. See: - http://washort.twistedmatrix.com/2011/01/introducing-exocet.html - http://washort.twistedmatrix.com/2011/03/exocet-second-look.html -- Devin