Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'transform': 0.07; 'lawrence': 0.09; 'repeated': 0.09; 'subject:extra': 0.09; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'igor': 0.16; 'subject:variable': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'chase': 0.31; 'but': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'to:addr :python-list': 0.38; 'subject:" ': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'healthy': 0.61; 'skip:* 10': 0.61; 'back': 0.62; 'reach': 0.63; 'received:50.22': 0.84 Date: Sun, 8 Dec 2013 13:23:26 -0600 From: Tim Chase To: python-list@python.org Subject: Re: Eliminate "extra" variable In-Reply-To: References: <52A25D94.9040404@islandtraining.com> <20131208125823.241112db@bigbox.christie.dr> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386530532 news.xs4all.nl 2841 [2001:888:2000:d::a6]:48552 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61321 On 2013-12-08 19:10, Mark Lawrence wrote: > On 08/12/2013 18:58, Tim Chase wrote: > > On 2013-12-07 23:14, Igor Korot wrote: > > [big snip] > > Whenever I need date manipulations I always reach out to this > http://labix.org/python-dateutil But based on the OP's repeated transformations from date-to-string and back again, what do you reach for when you want to transform things *needlessly*? I recommend the delete key and some healthy refactoring. :-) -tkc