On 2015-02-25, MRAB <pyt...@mrabarnett.plus.com> 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,
That's probably true now, but hasn't always been the case (at least in the US). If you're dealing with historical data, you might need to include the city and exchange name in addition to the 4/5-digit line number. In _most_ multi-exchange service areas, those exchange names have always mapped to a 2-digit number, but I believe there were exceptions. When I were a wee kid in the 60's my phone number was "Cedar 2 <yadda yadda yadda yadda>". By then everybody had all-numeric dialing and "Cedar" translated to "23", but it was still common to see phone numbers printed using the exchange names. > so that might be a better example of numbers that aren't really > numbers. -- Grant Edwards grant.b.edwards Yow! Am I elected yet? at gmail.com -- https://mail.python.org/mailman/listinfo/python-list