Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'mrab': 0.05; 'subject:Python': 0.06; 'list?': 0.07; 'utf-8': 0.07; 'lawrence': 0.09; 'cc:addr:python-list': 0.11; 'zero.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; '25,': 0.31; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'dates': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'pm,': 0.38; 'url:mail': 0.40; 'numbers': 0.61; 'entire': 0.61; 'telephone': 0.63; 'zip': 0.64; 'world': 0.66; '2015': 0.84; 'messed': 0.84; 'subject:Practices': 0.84; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZbgOY3ncoHZQ+cF5Z8d5zA2wq/XnOEzc2T+ldKHMvpo=; b=pT9lqS3U3D89OeHHI/WcUxzbfxQuEhVgCLLi+rmAWPyX0g4F94BstC0h5Zxb5y6ZoQ BLYQARgxBMzu4n76vxqPsU9BbzS+qEkow8iF5Q4PljtJ/i3tIW0qAui+4Z9QakzCzYsA t2LFwLcGVTCgXDrv+777eyiX7iP6zaRBLRrwN1skTMhUC3e6jl+cbUC63nPmsdEAOEyJ nsBncruQddJYqt2uZm6IvnCh2Y52Y+4meS4ePMBWTF5ufWn0cKg/idqcocqM2DkLaIHQ JY12WpfFcJl9N4PX8AGbhw3ZmXZCiT28m16sn9zhRvSiB9LAb7P3G1qF5yYNYMTtzyq5 GEIg== MIME-Version: 1.0 X-Received: by 10.42.32.65 with SMTP id c1mr6521073icd.41.1424905150678; Wed, 25 Feb 2015 14:59:10 -0800 (PST) In-Reply-To: <54EE3E6A.5010204@mrabarnett.plus.com> References: <54EE3E6A.5010204@mrabarnett.plus.com> Date: Wed, 25 Feb 2015 17:59:10 -0500 Subject: Re: Python Worst Practices From: Joel Goldstick To: MRAB Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424905154 news.xs4all.nl 2831 [2001:888:2000:d::a6]:38281 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86444 On Wed, Feb 25, 2015 at 4:28 PM, MRAB wrote: > On 2015-02-25 20:45, Mark Lawrence wrote: >> >> http://www.slideshare.net/pydanny/python-worst-practices >> >> Any that should be added to this list? Any that be removed as not that >> bad? >> > We don't have numeric ZIP codes in the UK, but the entire world has > numeric telephone numbers, so that might be a better example of numbers > that aren't really numbers. US zip codes get messed up with ints because many have a leading zero. I use strings > > Numeric dates can be ambiguous: dd/mm/yyyy or mm/dd/yyyy? The ISO > standard is clearer: yyyy-mm-dd. > > Handling text: "Unicode sandwich". > > UTF-8 is better than legacy encodings. > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com