Re: To whoever hacked into my Database

2013-11-12 Thread Mark Lawrence
On 12/11/2013 23:54, Ian Kelly wrote: On Tue, Nov 12, 2013 at 4:38 PM, Mark Lawrence wrote: What would you classify insulting my late mother as? Rudeness. I'm not defending Nikos here, but let's not call it something that it isn't. Only being rude, well that's alright then, I take back ev

Re: datetime question

2013-11-12 Thread Chris Angelico
On Wed, Nov 13, 2013 at 11:30 AM, Dennis Lee Bieber wrote: > On Tue, 12 Nov 2013 13:02:58 +1100, Chris Angelico > declaimed the following: > >>On Tue, Nov 12, 2013 at 12:59 PM, Dennis Lee Bieber >> wrote: >>> Of course, I'm spoiled... My /watch/ has a dial for UTC, along with >>> one >>>

Re: To whoever hacked into my Database

2013-11-12 Thread Steven D'Aprano
On Tue, 12 Nov 2013 17:27:08 +0100, Antoon Pardon wrote: >> Somebody has to >> accept the responsibility to walk away and break the positive feedback >> loop, or it will never end. And I can't see Nikos being the one to do >> that. > > Not my problem. It might not be a problem for you, since yo

Re: datetime question

2013-11-12 Thread Roy Smith
In article , Alister wrote: > > Best practices say to move the value from local time to UTC as soon as > > possible, then store/use the UTC time internally for all operations. > > Only when it's about to be presented to the user should you convert it > > back to local time if you need to. > >

Re: datetime question

2013-11-12 Thread MRAB
On 13/11/2013 00:37, Dennis Lee Bieber wrote: On Wed, 13 Nov 2013 09:42:38 +1100, Chris Angelico declaimed the following: Plus, they switch clocks at 2am all the time, not at 2am forward and 3am backward. 2AM is the time at which US switches occur also, in either direction. The di

Re: PyMyth: Global variables are evil... WRONG!

2013-11-12 Thread Terry Reedy
On 11/11/2013 11:46 PM, Rick Johnson wrote: No, Python modules can be poked, prodded, and violated by any pervert who can spell the word "import". Or by clever programmers. Attribute values can be reassigned and state can be externally manipulated Perhaps for good reasons. resulting in a

Re: UTF-32 decoder optimization in Python 3.4

2013-11-12 Thread Terry Reedy
On 11/12/2013 1:25 PM, [email protected] wrote: Le mardi 12 novembre 2013 03:11:48 UTC+1, Terry Reedy a écrit : with full discussion. (I know that you, Mark, could have found that, but not everyone reading could.) I'm not so sure, I understood the last sentence correctly. If you are think

Re: To whoever hacked into my Database

2013-11-12 Thread Ethan Furman
On 11/12/2013 03:27 PM, Ian Kelly wrote: On Tue, Nov 12, 2013 at 2:59 PM, Ethan Furman wrote: Every time he uses foul language against somebody he's acting like a bully. Every time he reposts questions and ignores answers he's acting like a bully. Every time he declares that what he wants is

PyModule(G.py): Now Python has REAL globals -- and their scoped to boot!

2013-11-12 Thread Rick Johnson
# Copyright 2013, Rick "rantingrick" Johnson # # Permission to use, copy, modify, and distribute this software for # any purpose and without fee is hereby granted, provided that the above # copyright notice appear in all copies. # # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR # I

Re: PyMyth: Global variables are evil... WRONG!

2013-11-12 Thread Rick Johnson
On Tuesday, November 12, 2013 4:41:34 PM UTC-6, jongiddy wrote: > On Tuesday, November 12, 2013 5:00:37 PM UTC, Rick Johnson wrote: > >1. Accept that globals are useful, and make them > > available through a "real" global syntax, not > > some attribute of a module that "appears" to

Re: PyMyth: Global variables are evil... WRONG!

2013-11-12 Thread Tim Chase
On 2013-11-12 18:45, Rick Johnson wrote: > "math.pi" should be "math.PI". It's a real shame that this fails: >>> math.PI = math.pi oh...wait... > and PI should be a CONSTANT. And not just a pseudo constant, but a > REAL constant that cannot be changed. How much precision do you want? Perhap

PyModule(C.py): Now Python has REAL constants -- and they're scoped to boot!

2013-11-12 Thread Rick Johnson
# Copyright 2013, Rick "rantingrick" Johnson # # Permission to use, copy, modify, and distribute this software for # any purpose and without fee is hereby granted, provided that the above # copyright notice appear in all copies. # # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR # IM

Bullying [was Re: To whoever hacked into my Database]

2013-11-12 Thread Steven D'Aprano
On Tue, 12 Nov 2013 17:19:43 -0800, Ethan Furman wrote: > On 11/12/2013 03:27 PM, Ian Kelly wrote: >> On Tue, Nov 12, 2013 at 2:59 PM, Ethan Furman >> wrote: >>> Every time he uses foul language against somebody he's acting like a >>> bully. >>> >>> Every time he reposts questions and ignores ans

Please help with this

2013-11-12 Thread saad imran
Could you point out any errors in my code: #This is a game where you have to escape a dragon. # By Saad Imran import random import pygame # Define questions and answers. que1 = "4481 *2" ans1 = "8962" que2 = "457 * 21" ans2 = "9597" que3 = "2345*23" ans3 = "53935" que4 = "Who plays against

Re: Please help with this

2013-11-12 Thread Gary Herron
On 11/12/2013 08:18 PM, saad imran wrote: Could you point out any errors in my code: Nope. You've got to do *some* of the work if you expect free volunteer help from people around here. Take the time to tell us what you expect this program to do, what actually happens when you run it,

sendmail library ?!

2013-11-12 Thread Tamer Higazi
Hi people! I am looking for a python library that does mailing directly through "sendmail". When I look into the docs, I see only an "smtlip" library but nothing that could serve with sendmail or postfix. Any ideas ?! Thanks Tamer -- https://mail.python.org/mailman/listinfo/python-list

Re: Please help with this

2013-11-12 Thread Ben Finney
saad imran writes: > Could you point out any errors in my code: This isn't a code review service; it is a community discussion forum. Do you have specific Python-related questions? What particular problems are you having with this code? -- \ “Pinky, are you pondering what I'm ponderi

Re: Please help with this

2013-11-12 Thread Mark Lawrence
On 13/11/2013 04:34, Gary Herron wrote: On 11/12/2013 08:18 PM, saad imran wrote: Could you point out any errors in my code: Nope. You've got to do *some* of the work if you expect free volunteer help from people around here. Take the time to tell us what you expect this program to do,

Re: Please help with this

2013-11-12 Thread Dave Angel
On Tue, 12 Nov 2013 20:18:58 -0800 (PST), saad imran wrote: Could you point out any errors in my code: que1 = "4481 *2" ans1 = "8962" que2 = "457 * 21" ans2 = "9597" These values should all be in a single named structure, probably a list of tuples. Then all that duplicated code could be cond

Re: Please help with this

2013-11-12 Thread Steven D'Aprano
On Tue, 12 Nov 2013 20:18:58 -0800, saad imran wrote: > Could you point out any errors in my code: Hi Saad, and welcome! As others have pointed out, you'll have better results if you tell us what errors you have, what result you actually expected, and what you have tried to do to fix it. If y

Re: sendmail library ?!

2013-11-12 Thread Cameron Simpson
On 13Nov2013 05:52, Tamer Higazi wrote: > I am looking for a python library that does mailing directly through > "sendmail". > When I look into the docs, I see only an "smtlip" library but nothing > that could serve with sendmail or postfix. Use the subprocess module. Pipe to: /usr/sbin/sendma

Re: UTF-32 decoder optimization in Python 3.4

2013-11-12 Thread wxjmfauth
Le mercredi 13 novembre 2013 02:25:55 UTC+1, Terry Reedy a écrit : > On 11/12/2013 1:25 PM, [email protected] wrote: > > > Le mardi 12 novembre 2013 03:11:48 UTC+1, Terry Reedy a écrit : > > > > >> with full discussion. (I know that you, Mark, could have found that, but > > >> not everyone r

<    1   2