Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65708
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.038 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'broken': 0.04; 'subject:Python': 0.06; 'subject:help': 0.08; 'augmented': 0.09; 'bits': 0.09; 'subject:modules': 0.09; 'cc:addr:python-list': 0.11; '"in': 0.16; '->': 0.16; '......': 0.16; '24,': 0.16; '3600,': 0.16; '60,': 0.16; 'assignments': 0.16; 'brightest': 0.16; 'gonna': 0.16; 'inclined': 0.16; 'mildly': 0.16; 'nerds,': 0.16; 'seconds.': 0.16; 'wrote:': 0.18; 'received:10.0.1': 0.19; 'result.': 0.19; 'things.': 0.19; 'feb': 0.22; 'email addr:gmail.com>': 0.22; 'minutes.': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; '<div': 0.24; 'certainly': 0.24; 'days,': 0.24; 'recognize': 0.24; 'cc:2**0': 0.24; 'first,': 0.26; 'second': 0.26; 'least': 0.26; 'values': 0.27; 'header:In-Reply- To:1': 0.27; 'idea': 0.28; 'chris': 0.29; '[1]': 0.29; 'raise': 0.29; 'skills.': 0.29; "i'm": 0.30; 'work.': 0.31; 'getting': 0.31; 'easier': 0.31; 'evil': 0.31; 'lot.': 0.31; 'strip': 0.31; 'you\x92re': 0.31; 'anyone': 0.31; 'figure': 0.32; 'weeks': 0.32; 'run': 0.32; 'up.': 0.33; 'alone': 0.33; "i'd": 0.34; 'subject:with': 0.35; 'no,': 0.35; "who's": 0.35; 'but': 0.35; '(we': 0.36; 'campaign': 0.36; 'minutes,': 0.36; 'right?': 0.36; 'received:10.0': 0.36; 'similar': 0.36; 'half': 0.37; 'seconds': 0.37; 'skip:- 20': 0.37; 'received:10': 0.37; 'being': 0.38; 'auto;': 0.38; 'pm,': 0.38; 'that,': 0.38; 'sure': 0.39; 'enough': 0.39; 'how': 0.40; 'days': 0.60; 'most': 0.60; "you're": 0.61; 'first': 0.61; 'back': 0.62; "you'll": 0.62; 'header:Message- Id:1': 0.63; 'our': 0.64; 'teaching': 0.64; 'movie': 0.65; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65; 'hours': 0.66; 'minutes': 0.67; 'it!': 0.67; '15px;': 0.68; 'effective.': 0.68; 'nobody': 0.68; 'power': 0.76; '2014,': 0.84; 'awesome,': 0.84; 'etc,': 0.84; 'maths': 0.84; 'sight': 0.84; '0px;">': 0.91; 'captain': 0.91; 'dozen': 0.91; 'children.': 0.93; 'online,': 0.96 |
| X-CT-Class | Clean |
| X-CT-Score | 0.00 |
| X-CT-RefID | str=0001.0A020206.52F6E2D1.0081,ss=1,re=0.000,fgs=0 |
| X-CT-Spam | 0 |
| X-Authority-Analysis | v=2.0 cv=DLtRFVxb c=1 sm=1 a=MB85R812cvcrhCHz/P2OVA==:17 a=IwL8z8QTeS0A:10 a=G8Uczd0VNMoA:10 a=kviXuzpPAAAA:8 a=_HE405UYfI8A:10 a=pGLkceISAAAA:8 a=voDT62f6AAAA:8 a=aNVUqJ7swyV4jlmkbbgA:9 a=pILNOxqGKmIA:10 a=00mllSfJ59gA:10 a=MSl-tDqOz04A:10 a=ay2xstjs0EST5pghe3wA:9 a=_W_S_7VecoQA:10 a=6enaa-JgCGYA: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=_12D62358-C2AF-4CBF-897E-7E543A3728B4" |
| 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 19:07:12 -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.6559.1391911642.18130.python-list@python.org> (permalink) |
| Lines | 160 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1391911642 news.xs4all.nl 2944 [2001:888:2000:d::a6]:57276 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:65708 |
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: > No, I'm not a teacher by profession, but I was homeschooled, and since > I'm the second of seven children [1], I got used to teaching things to > my siblings. Also, every week I run a Dungeons and Dragons campaign > online, which requires similar skills. (Teaching maths is way easier > than getting my players to figure out some puzzles. Well, you’re very good at it! Like I said I like that you don’t just give me the answer you help me figure it out which is what I need. > I had no idea > that, in a group of half a dozen nerds, nobody would recognize this > broken text: "In brightest day, in blackest night / No evil ...... > sight / Let .... worship .... mi.... / .... my power .... tern...." - > I'd have thought the first line alone would be enough for anyone who's > at least mildly nerdy and/or geeky.) Green Lantern oath right? > > (We start in fifteen minutes. Want to come watch? Just telnet to > minstrelhall.com port 221!) Awesome, I may stop by and check it out. > > 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. Yeah I had to look up how many seconds were in weeks and days. > > You'll also note that you're trimming off bits and leaving "residual > seconds". I would put all the "_rem" values back into "seconds", which > would let you use augmented assignment: Not sure what augmented assignments are but I’ll look that up. I’m gonna try and figure it out that way also just for the heck of it. > > weeks = seconds/604800 > seconds %= 604800 Is the -> seconds %= 604800 Saying -> seconds = seconds % 604800? > days = seconds / 86400 > seconds %= 86400 > hours = seconds / 3600 > seconds %= 3600 > minutes = seconds / 60 > seconds %= 60 > > > [1] Our father's not a captain, but there's still nothing about being > a non-captain with seven children. And that movie is definitely one of > our favorite things. Seven children is a lot. It definitely takes a Captain to raise seven children. : )
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python 2.7.6 help with modules Scott W Dunning <swdunning@cox.net> - 2014-02-08 19:07 -0700
csiph-web