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: 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; '': 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 In-Reply-To: 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> To: Chris Angelico X-Mailer: Apple Mail (2.1827) 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: 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 --Apple-Mail=_12D62358-C2AF-4CBF-897E-7E543A3728B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Feb 8, 2014, at 6:46 PM, Chris Angelico 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=92re very good at it! Like I said I like that you don=92t = just give me the answer you help me figure it out which is what I need. =20= > 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? =20 >=20 > (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. =20 >=20 > 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. >=20 > 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=92ll look that up. I=92m = gonna try and figure it out that way also just for the heck of it. =20 >=20 > weeks =3D seconds/604800 > seconds %=3D 604800 Is the -> seconds %=3D 604800=20 Saying -> seconds =3D seconds % 604800? > days =3D seconds / 86400 > seconds %=3D 86400 > hours =3D seconds / 3600 > seconds %=3D 3600 > minutes =3D seconds / 60 > seconds %=3D 60 >=20 >=20 > [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. : ) --Apple-Mail=_12D62358-C2AF-4CBF-897E-7E543A3728B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
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=92re very good at it!  Like I = said I like that you don=92t 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=92ll look that up.  I=92m gonna try and = figure it out that way also just for the heck of it. =  

weeks =3D seconds/604800
seconds %=3D = 604800

Is the ->  seconds %=3D = 604800 
Saying ->  seconds =3D seconds % = 604800?


days =3D seconds / 86400
seconds %=3D = 86400
hours =3D seconds / 3600
seconds %=3D 3600
minutes =3D = seconds / 60
seconds %=3D 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.  : = )

= --Apple-Mail=_12D62358-C2AF-4CBF-897E-7E543A3728B4--