Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'none)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'run.': 0.09; 'def': 0.14; 'this:': 0.15; '(functions': 0.16; 'arg2,': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:wlfraed': 0.16; 'subject:pass': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'trying': 0.21; 'process,': 0.21; 'url:home': 0.21; 'dropped': 0.23; 'times,': 0.24; 'code': 0.25; 'statement': 0.25; "i'm": 0.26; 'function': 0.27; 'lee': 0.28; 'pass': 0.28; 'explicit': 0.28; 'looks': 0.28; 'implicitly': 0.30; 'none,': 0.30; 'equivalent': 0.30; 'subject:?': 0.31; "i'll": 0.31; 'nov': 0.31; 'thu,': 0.32; 'to:addr:python-list': 0.32; 'header:X -Complaints-To:1': 0.33; 'subject:What': 0.34; 'which,': 0.34; 'none': 0.36; 'charset:us-ascii': 0.36; 'received:org': 0.37; 'progress': 0.39; 'subject:: ': 0.39; 'might': 0.39; 'to:addr:python.org': 0.39; 'skip:_ 10': 0.40; 'being': 0.40; 'skip:l 20': 0.40; 'john': 0.62; '2011': 0.62; 'dennis': 0.77; '-0800': 0.84; 'subject:should': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: What exactly is "pass"? What should it be? Date: Thu, 17 Nov 2011 20:34:22 -0800 Organization: > Bestiaria Support Staff < References: <27955957.352.1321582691251.JavaMail.geo-discussion-forums@prap37> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fb5l5.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321590908 news.xs4all.nl 6919 [2001:888:2000:d::a6]:48652 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15861 On Thu, 17 Nov 2011 18:18:11 -0800 (PST), John Ladasky declaimed the following in gmane.comp.python.general: > I'm trying to write tidy, modular code which includes a long-running process. From time to time I MIGHT like to check in on the progress being made by that long-running process, in various ways. Other times, I'll just want to let it run. So I have a section of code which, generally, looks like this: > > def _pass(*args): > pass > This is the equivalent of def _pass(*args): return None (functions with no explicit return statement implicitly return None) > def long_running_process(arg1, arg2, arg_etc, report = _pass): > result1 = do_stuff() > report(result1) So this is a call to a function that just returns a None, which is dropped by the interpreter... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/