Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65726

Re: Python 2.7.6 help with modules

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <swdunning@cox.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.06; 'subject:help': 0.08; 'subject:modules': 0.09; 'cc:addr:python- list': 0.11; '24,': 0.16; '3600,': 0.16; '60,': 0.16; 'inclined': 0.16; 'seconds.': 0.16; 'wouldn\x92t': 0.16; 'wrote:': 0.18; 'received:10.0.1': 0.19; 'result.': 0.19; 'feb': 0.22; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'days,': 0.24; 'cc:2**0': 0.24; 'first,': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'work.': 0.31; 'strip': 0.31; 'weeks': 0.32; 'subject:with': 0.35; 'but': 0.35; 'minutes,': 0.36; 'received:10.0': 0.36; 'seconds': 0.37; 'skip:- 20': 0.37; 'received:10': 0.37; 'auto;': 0.38; 'pm,': 0.38; 'how': 0.40; 'most': 0.60; "you're": 0.61; 'first': 0.61; 'header :Message-Id:1': 0.63; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65; '15px;': 0.68; 'effective.': 0.68; '2014,': 0.84; 'etc,': 0.84
X-CT-Class Clean
X-CT-Score 0.00
X-CT-RefID str=0001.0A020205.52F7196E.0086,ss=1,re=0.000,fgs=0
X-CT-Spam 0
X-Authority-Analysis v=2.0 cv=Pb8hcFdd c=1 sm=1 a=MB85R812cvcrhCHz/P2OVA==:17 a=IwL8z8QTeS0A:10 a=G8Uczd0VNMoA:10 a=kviXuzpPAAAA:8 a=_HE405UYfI8A:10 a=pGLkceISAAAA:8 a=zelpqfMD0J1us93FhIYA:9 a=pILNOxqGKmIA:10 a=MSl-tDqOz04A:10 a=QHTU8EaWdFW27-jEUScA:9 a=_W_S_7VecoQA:10 a=MB85R812cvcrhCHz/P2OVA==:117
X-CM-Score 0.00
Authentication-Results cox.net; auth=pass (PLAIN) smtp.auth=swdunning@cox.net
Content-Type multipart/alternative; boundary="Apple-Mail=_072D36C9-9E6F-49AB-82EE-855081C4AC68"
Mime-Version 1.0 (Mac OS X Mail 7.1 \(1827\))
Subject Re: Python 2.7.6 help with modules
From Scott W Dunning <swdunning@cox.net>
In-Reply-To <Q1oo1n00J3bjUJS011opN8>
Date Sat, 8 Feb 2014 23:00:13 -0700
References <032F2E23-6983-4710-B087-C1771B66C3EF@cox.net> <635C857D-1F7A-4F95-B3A7-F1A3C69BF137@cox.net> <1DA52F3B-CE00-4E47-BE84-C07482966FD7@cox.net> <Q1oo1n00J3bjUJS011opN8>
To Chris Angelico <rosuav@gmail.com>
X-Mailer Apple Mail (2.1827)
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6571.1391925617.18130.python-list@python.org> (permalink)
Lines 46
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1391925617 news.xs4all.nl 2976 [2001:888:2000:d::a6]:53513
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65726

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Feb 8, 2014, at 6:46 PM, Chris Angelico <rosuav@gmail.com> wrote:
> That's certainly effective. It's going to give you the right result. I
> would be inclined to start from the small end and strip off the
> seconds first, then the minutes, etc, because then you're working with
> smaller divisors (60, 60, 24, 7 instead of 604800, 86400, 3600, 60);
> most people will understand that a week is 7 days, but only people who
> work with DNS will know that it's 604800 seconds. But both work.

How would working from the small end (seconds) first and going up to weeks allow me to work with the smaller divisors?  Wouldn’t it still have to be in seconds?  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 2.7.6 help with modules Scott W Dunning <swdunning@cox.net> - 2014-02-08 23:00 -0700

csiph-web