Le mercredi 13 novembre 2013 02:25:55 UTC+1, Terry Reedy a écrit :
> On 11/12/2013 1:25 PM, wxjmfa...@gmail.com 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
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
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
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
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,
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
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
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,
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
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
# 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
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
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
# 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
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
On 11/12/2013 1:25 PM, wxjmfa...@gmail.com 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
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
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
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.
> >
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
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
>>>
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
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.
--
https://mail.python.org/mailman/listinfo/python-list
On 12/11/2013 23:27, 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 the
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 the most important and so he is
>
On 12/11/2013 17:22, Antoon Pardon wrote:
Op 12-11-13 12:23, Ned Batchelder schreef:
On Tuesday, November 12, 2013 1:31:32 AM UTC-5, ru...@yahoo.com wrote:
On 11/11/2013 06:16 PM, Ned Batchelder wrote:
Nikos has received a good deal of genuine advice. He has also been
genuinely difficult to h
On Wed, Nov 13, 2013 at 10:04 AM, wrote:
> Thanks a lot! I'll try this out!
> Sorry to everyone else whose eyes I made bleed. I've never used a newsgroup
> before...still not really sure what they are. Found this through a google
> search :\
There's an easy fix. Go to this page:
https://mail.
On Wed, Nov 13, 2013 at 8:16 AM, Victor Stinner
wrote:
> In 2010, a developper called Tav wrote a sandbox called "safelite.py":
> the sandbox hides sensitive attributes to separate a trusted namespace
> and an untrusted namespace.
Ha, I come full circle. This was the exact project that brought me
On Wed, Nov 13, 2013 at 7:22 AM, Isaac Gerg wrote:
> Thanks for the reply Bill. The problem is the text i am getting is from a
> python warning message, not one of my own print() function calls.
Since sys.stdout is just an object, you could replace it with
something that redirects its write() c
On Tue, 12 Nov 2013 14:14:42 -0800, lrwarren94 wrote:
> http://pastebin.com/6QZTvx6Z
Work through your code very very carefully. You're doing something in
each if branch that you probably only want to do once in each execution
of the while loop.
If you can't figure it out, I'll post a correcte
On 12/11/2013 11:10, Frank-Rene Schäfer wrote:
Admittedly, I have no knowledge about the python implementation.
There is no "the" regarding Python implementations. Cpython alone is at
either 2.7.6 or 3.3.3 with 3.4 at alpha, then there's IronPython,
Jython, PyPy and lots more that I'm sure
On Nov 12, 2013, at 2:16 AM, Chuck Quast wrote:
> why are any of you replying?
"A Group Is Its Own Worst Enemy” — Clay Shirky, 2003
http://www.shirky.com/writings/herecomeseverybody/group_enemy.html
More practically:
"Help Vampires: A Spotter’s Guide” — Amy Hoy, 2006
http://slash7.com/2006/12
On Tue, Nov 12, 2013 at 9:21 PM, E.D.G. wrote:
> The point is, when people want to make some computer program available
> for use by others around the world they might want to circulate a version of
> their program that has such a simple format that anyone can understand it.
> And for actual
Op 12-11-13 12:23, Ned Batchelder schreef:
> On Tuesday, November 12, 2013 1:31:32 AM UTC-5, ru...@yahoo.com wrote:
>> On 11/11/2013 06:16 PM, Ned Batchelder wrote:
>>> Nikos has received a good deal of genuine advice. He has also been
>>> genuinely difficult to help.
>>
>> Yes. If he is too diff
On 11/11/2013 06:05 PM, Dennis Lee Bieber wrote:
On Mon, 11 Nov 2013 09:01:07 -0500, Roy Smith declaimed the
following:
"Ugh, what's this close paren? Does it terminate the get(), or the
print()? I need to go back and count open parens to make sure"
No... You need to use an editor
On Tuesday, November 12, 2013 4:56:35 PM UTC-6, MRAB wrote:
> On 12/11/2013 22:27, l...@gmail.com wrote:> On Tuesday, November
>
> 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote:
>
> >> On 12/11/2013 22:14, lr@gmail.com wrote:
>
> >>
>
> >> > So I'm trying to write a program for a probl
On Wed, Nov 13, 2013 at 9:27 AM, wrote:
> I'm not quite sure what you mean by that. it was on that pastebin link. I'll
> post it again here though. it's no longer than half a page.
Inline means what you did in this post. Out-of-line means providing us
with a link to where the code is.
This for
On 12/11/2013 22:27, lrwarre...@gmail.com wrote:> On Tuesday, November
12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote:
>> On 12/11/2013 22:14, lr@gmail.com wrote:
>>
>> > So I'm trying to write a program for a problem in class, and
something strange is happening that I can't figure out why i
On 2013-11-12 14:27, lrwarre...@gmail.com wrote:
> if int(raw_input()) == 1:
> print "Moving north"
> y = y + 1
> elif int(raw_input()) == 2:
> print "Moving east"
> x = x + 1
> elif int(raw_input()) == 3:
> print "Moving south
On Tue, 12 Nov 2013 14:04:08 -0800, edmundicon wrote:
> Greetings everyone! This is my first post on this forum :)
>
> TL;DR: I want to convert the gregorian years into Chinese years, and
> deal with the fact that the Chinese new years are different each
> gregorian year. If I manage to do that,
First thing would you please read and action this
https://wiki.python.org/moin/GoogleGroupsPython so we don't have to read
double spaced google crap, thanks.
On 12/11/2013 22:27, lrwarre...@gmail.com wrote:
On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote:
On 12/11/2013 22:
Welcome to the world of Python programming! I'm glad you're learning this great
language.
As to your bug, think about this: in each if or elif statement, you're reading
the user input again, so if user input is NOT equal to 1 in the first place, it
reads input again. Try to step through your c
On 11/12/2013 01:26 PM, Ian Kelly wrote:
As for letting the "bullies" (which I'll take as a metaphor for
trolls, since I've not once seen Nikos act like a bully)
Every time he uses foul language against somebody he's acting like a bully.
Every time he reposts questions and ignores answers he'
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 be
>
> local, but in reality is global. Then prevent
On Wed, Nov 13, 2013 at 6:14 AM, Joel Goldstick
wrote:
> In the US, the state of Indiana is really weird. Three separate time
> zone areas, that don't all flip in the same way. See this for TZ
> hell: http://en.wikipedia.org/wiki/Indiana_time_zones
Timezones are one of the most interesting [1]
On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote:
> On 12/11/2013 22:14, lr@gmail.com wrote:
>
> > So I'm trying to write a program for a problem in class, and something
> > strange is happening that I can't figure out why is happening. I was
> > wondering if you guys coul
On 12/11/2013 22:14, lrwarre...@gmail.com wrote:
So I'm trying to write a program for a problem in class, and something strange
is happening that I can't figure out why is happening. I was wondering if you
guys could help me fix it?
http://pastebin.com/6QZTvx6Z
Basically, 1 and 2 work just fi
So I'm trying to write a program for a problem in class, and something strange
is happening that I can't figure out why is happening. I was wondering if you
guys could help me fix it?
http://pastebin.com/6QZTvx6Z
Basically, 1 and 2 work just fine as inputs, but whenever I input 3 or 4, idle
ju
Greetings everyone! This is my first post on this forum :)
TL;DR: I want to convert the gregorian years into Chinese years, and deal with
the fact that the Chinese new years are different each gregorian year. If I
manage to do that, I'll know which year the user is born in Chinese years and
can
On Tue, Nov 12, 2013 at 9:27 AM, Antoon Pardon
wrote:
> Op 12-11-13 14:02, Ian Kelly schreef:
>> On Tue, Nov 12, 2013 at 2:09 AM, Antoon Pardon
>> wrote:
>>> So you are complaining about people being human. Yes that is
>>> how people tend to react when they continualy are frustrated
>>> by someon
Thanks for the reply Bill. The problem is the text i am getting is from a
python warning message, not one of my own print() function calls.
--
https://mail.python.org/mailman/listinfo/python-list
On Nov 12, 2013, at 2:12 PM, Isaac Gerg wrote:
> I launch my program with pythonw and begin it with the code below so that all
> my print()'s go to the log file specified.
>
> if sys.executable.find('pythonw') >=0:
># Redirect all console output to file.
>sys.stdout = open("pyt
Leo 4.11 final is now available at:
http://sourceforge.net/projects/leo/files/Leo/ Leo 4.11 contains over a year's
work on Leo.
Leo is a PIM, an IDE and an outliner for programmers, authors and web
designers. Leo's unique features organize data in a revolutionary way.
Python scripts can easily a
On Tue, 12 Nov 2013 17:57:55 +0200, Ferrous Cranus wrote:
> or perhaps by confiruing the timezone of the server to use Greece's
> TimeZone by issuing a linux command?
If you have that degreee of control over the server, yes, but UTC is
always safer, because if you need to move your server to a d
On Tue, 12 Nov 2013 12:47:58 +, Andy Lawton wrote:
> (I think "Europe/Kiev" is Greece but I don't know)
I suspect Nick is really in a coding sweatshop in "Asia/Mumbai"
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
I launch my program with pythonw and begin it with the code below so that all
my print()'s go to the log file specified.
if sys.executable.find('pythonw') >=0:
# Redirect all console output to file.
sys.stdout = open("pythonw - stdout stderr.log",'w')
sys.stderr = sys.std
On Tue, Nov 12, 2013 at 2:09 PM, MRAB wrote:
> On 12/11/2013 16:12, Tim Chase wrote:
>>
>> On 2013-11-12 17:57, Ferrous Cranus 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. O
On 12/11/2013 16:12, Tim Chase wrote:
On 2013-11-12 17:57, Ferrous Cranus 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 conver
Le mardi 12 novembre 2013 03:11:48 UTC+1, Terry Reedy a écrit :
> On 11/11/2013 4:41 PM, Mark Lawrence wrote:
>
> > From http://docs.python.org/dev/whatsnew/3.4.html#optimizations "The
>
> > UTF-32 decoder is now 3x to 4x faster.". Does anybody have any
>
> > references to this work? All I ca
On Tuesday, November 12, 2013 11:00:37 AM UTC-6, Rick Johnson wrote:
[snip]
> We have all been brainwashed by authorities. First they
> give us rules, then they give us the power to break
> those rules.
The devil himself said it best:
http://www.youtube.com/watch?v=RGR4SFOimlk
Hmm. How do we
On 2013-11-12 09:00, Rick Johnson wrote:
> Because the constant PI should never change. Sure we can
> argue about granularity of PI, but that argument has no
> weight on the fact that PI should be a constant.
>
> By placing PI in the module "math", we are creating a pseudo
> interface. We (the cre
Hi Omar,
Thanks for the suggestions!
Your point about question difficulty is well taken. We previously organized
questions into sections based on difficulty or topic, but have been
experimenting with doing away with sections entirely. We are developing a
way to intelligently deliver questions to
On Tuesday, November 12, 2013 9:33:50 AM UTC-6, jongiddy wrote:
> I'm not sure where you get the feeling you're accessing an
> interface.
Because the constant PI should never change. Sure we can
argue about granularity of PI, but that argument has no
weight on the fact that PI should be a constant
On Tue, Nov 12, 2013 at 11:37 AM, Antoon Pardon
wrote:
> Op 12-11-13 15:44, JL schreef:
>> I am actually running python on raspberry pi. The trigger event is a
>> button-press.
>
> That doesn't help. What does that button-press cause in terms of the OS. Does
> it cause a signal? Does it produce a
Op 12-11-13 15:44, JL schreef:
> I am actually running python on raspberry pi. The trigger event is a
> button-press.
That doesn't help. What does that button-press cause in terms of the OS. Does
it cause a signal? Does it produce a number of bytes that can be read from
some file like object? Som
On 12/11/2013 16:12, Tim Chase wrote:
Regardless of the server's configured TZ, best practice still says to
normalize everything to UTC (ESPECIALLY if Greece uses the
abomination of DST that we suffer here in the US) as soon as
possible and keep it that way for as long as possible.
-tkc
Why
Op 12-11-13 14:02, Ian Kelly schreef:
> On Tue, Nov 12, 2013 at 2:09 AM, Antoon Pardon
> wrote:
>> So you are complaining about people being human. Yes that is
>> how people tend to react when they continualy are frustrated
>> by someone who refuses to show the slightest cooperation.
>> So no reje
On Tue, 12 Nov 2013 09:54:44 -0600, Tim Chase wrote:
> On 2013-11-12 17:24, Ferrous Cranus wrote:
>> But what of the server was in California and i live in Greece?
>>
>> How would datetime.now() work then?
>
> Best practices say to move the value from local time to UTC as soon as
> possible, the
On Nov 12, 2013, at 10:57 AM, Ferrous Cranus wrote:
> Στις 12/11/2013 5:54 μμ, ο/η Tim Chase έγραψε:
>> On 2013-11-12 17:24, Ferrous Cranus wrote:
>>> But what of the server was in California and i live in Greece?
>>>
>>> How would datetime.now() work then?
>>
>> Best practices say to move the
On 2013-11-12 17:57, Ferrous Cranus 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 ne
On Tue, 12 Nov 2013 06:44:05 -0800, JL wrote:
> I am actually running python on raspberry pi. The trigger event is a
> button-press.
>
> On Monday, November 11, 2013 6:56:03 PM UTC+8, Dave Angel wrote:
>> On Mon, 11 Nov 2013 01:41:58 -0800 (PST), JL
>>
>> wrote:
>>
>> > - If the event happens
Στις 12/11/2013 5:54 μμ, ο/η Tim Chase έγραψε:
On 2013-11-12 17:24, Ferrous Cranus wrote:
But what of the server was in California and i live in Greece?
How would datetime.now() work then?
Best practices say to move the value from local time to UTC as soon
as possible, then store/use the UTC
On Tue, Nov 12, 2013, at 4:39, Frank-Rene Schäfer wrote:
> > All you've done is proven that you can subvert things. By fiddling
> > with __hash__, __eq__, and so on, you can make sets and dicts behave
> > very oddly. Means nothing.
>
> To the contrary, it means everything about what 'isimmutable'
E.g.: using Cython
I am currently using Bottle, and it's fine; but provides much more than I need.
Investigating rewriting in C++; perhaps using restcgi. Can give that
restcgi a bit of a rewrite, removing the boost dependency and
replacing it with a C++11 dependency.
However given the lack of a
=?UTF-8?Q?Frank=2DRene_Sch=C3=A4fer?= wrote:
> The ImmutableNester special class type would be a feature to help
> checks to avoid recursion. Objects of classes derived from
> ImmutableNester have no mutable access functions and allow insertion
> of members only at construction time. At construct
On 2013-11-12 17:24, Ferrous Cranus wrote:
> But what of the server was in California and i live in Greece?
>
> How would datetime.now() work then?
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 whe
On 12/11/2013 15:40, Demian Brecht wrote:
> On Sat, Nov 9, 2013 at 5:33 AM, wrote:
>> I don't know how to use gdb the way you want, but it sounds like you are on
>> a fascinating journey of discovery. What are you trying to learn? Perhaps
>> we can talk about how the interpreter works.
>
> A
On Sat, Nov 9, 2013 at 5:33 AM, wrote:
> I don't know how to use gdb the way you want, but it sounds like you are on a
> fascinating journey of discovery. What are you trying to learn? Perhaps we
> can talk about how the interpreter works.
Apologies for not getting to this sooner, I took a m
On Tuesday, November 12, 2013 3:05:25 PM UTC, Rick Johnson wrote:
>
>
>
> When i type "math.pi", i "feel" as though i'm accessing an
>
> interface, BUT I'M NOT!
I'm not sure where you get the feeling you're accessing an interface. If I
typed this, I would feel like I was trying to change a f
Στις 12/11/2013 4:57 μμ, ο/η Chris Angelico έγραψε:
On Wed, Nov 13, 2013 at 1:12 AM, Ferrous Cranus wrote:
Joel i must thank you for your help.
I cannot believe it was so simple.
Tnhe server is self aware of its location so why use utcnow() + timedelte(
some_digit_here ) when you can just use
On Wed, Nov 13, 2013 at 1:32 AM, Alister wrote:
> As an analogy music has may general rules that musicians are wise to
> follow.
> Some pieces of music that break these rules are great because they have
> broken the rules but most are not. those that are great are great because
> the musician in q
[This announcement is in German since it targets a local user group
meeting in Düsseldorf, Germany]
ANKÜNDIGUNG
Python Meeting Düsseldorf
http://pyddf.de/
Ein Treffen v
On Tuesday, November 12, 2013 8:12:10 AM UTC-6, jongiddy wrote:
> Can you please give an example where having a module
> provide a global variable would work better than any of:
> [snip]
Well my point is that the attributes of any Python module
are "emulating" globals already. The fact that we ha
On Wed, Nov 13, 2013 at 1:12 AM, Ferrous Cranus wrote:
> Joel i must thank you for your help.
>
> I cannot believe it was so simple.
>
> Tnhe server is self aware of its location so why use utcnow() + timedelte(
> some_digit_here ) when you can just use just now()
Did you ever go and look at the
I am actually running python on raspberry pi. The trigger event is a
button-press.
On Monday, November 11, 2013 6:56:03 PM UTC+8, Dave Angel wrote:
> On Mon, 11 Nov 2013 01:41:58 -0800 (PST), JL
>
> wrote:
>
> > - If the event happens again before the 5secs expire, the high
>
> duration wil
On Mon, 11 Nov 2013 18:06:09 -0800, Rick Johnson wrote:
>
> In this thread, i want to get to the bottom of this whole
> "global-phobia" thing once and for all, and hopefully help you folks
> understand that globals are not all that bad -- when DESIGNED and USED
> correctly that is!
it is the fin
In article ,
Grant Edwards wrote:
> On 2013-11-11, Mark Lawrence wrote:
> > On 11/11/2013 23:21, mm0fmf wrote:
> >> On 11/11/2013 19:39, Ethan Furman wrote:
> >>> On 11/11/2013 11:19 AM, Denis McMahon wrote:
> On Mon, 11 Nov 2013 11:57:36 +0200, ?? ??
> wr
Στις 12/11/2013 4:03 μμ, ο/η Joel Goldstick έγραψε:
On Tue, Nov 12, 2013 at 8:32 AM, Ferrous Cranus wrote:
Στις 12/11/2013 2:47 μμ, ο/η Andy Lawton έγραψε:
Firstly , I should clarify I have no idea how to program python, I
joined this mailing list in anticipation of learning soon. And
thought
On Tuesday, November 12, 2013 2:06:09 AM UTC, Rick Johnson wrote:
>
>
>
> Justifying Global Variables:
>
>
>
> Globals are justified when they are used to communicate
>
>
On Tue, Nov 12, 2013 at 8:32 AM, Ferrous Cranus wrote:
> Στις 12/11/2013 2:47 μμ, ο/η Andy Lawton έγραψε:
>>
>> Firstly , I should clarify I have no idea how to program python, I
>> joined this mailing list in anticipation of learning soon. And
>> thought I'd have a go playing around with your cod
On 2013-11-12 11:14, Steven D'Aprano wrote:
On Tue, 12 Nov 2013 18:12:43 +1100, Chris Angelico wrote:
def isimmutable(x):
try:
hash(x)
return True
except TypeError:
return False
I'm afraid that doesn't test for immutability. It tests for hashability,
which
On 2013-11-12, Steven D'Aprano
wrote:
> Using os.path.exists before opening a file is, for the most
> part, a waste of time.
I use it in conjuction with file creation times to check that I
didn't forget to update/create one of the data files a process
might need.
Since I have to create the data
Στις 11/11/2013 11:36 πμ, ο/η Νίκος Αλεξόπουλος έγραψε:
Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε:
Okey let the hacker try again to mess with my database!!!
He is done it twice, lets see if he will make it again!
I'am waiting!
I can't believe your ignorance. You're actually telling a h
Στις 12/11/2013 2:47 μμ, ο/η Andy Lawton έγραψε:
Firstly , I should clarify I have no idea how to program python, I
joined this mailing list in anticipation of learning soon. And
thought I'd have a go playing around with your code and code given to
you (worst possible place to start, I'm sure)
B
On Tue, Nov 12, 2013 at 2:09 AM, Antoon Pardon
wrote:
> So you are complaining about people being human. Yes that is
> how people tend to react when they continualy are frustrated
> by someone who refuses to show the slightest cooperation.
> So no rejecting such responses, particullarly by the per
Firstly , I should clarify I have no idea how to program python, I joined
this mailing list in anticipation of learning soon. And thought I'd have a
go playing around with your code and code given to you (worst possible
place to start, I'm sure)
But from the answers already given to you, this seem
Hello all together,
I have a python and android related issue. I hope that this is no
problem because apart from stack overflow, where I also posted this
question (but got no answer so far), I think a python mailing-list is
the best place to post this question.
I am trying to use Python-Scr
On Tue, 12 Nov 2013 08:01:19 +0100, Frank-Rene Schäfer wrote:
> the existence of a built-in function 'isimmutable' puts the concept of
> immutability some more into the spotlight.
That is an argument against the proposal, not in favour. The concept of
immutability doesn't need to be in the spotl
On 2013-11-11 20:46, Rick Johnson wrote:
> Yes, and i agree. But you cannot "hide" everything. There
> will always be a need to share information.
You may not be able to (or want to) hide everything, but sharing
should at least happen over defined protocols (functions/methods).
Otherwise, you wand
On Tue, 12 Nov 2013 11:24:02 +0100, Peter Otten wrote:
> unknown wrote:
>
>> On Mon, 11 Nov 2013 14:26:46 -0800, Matt wrote:
>>
>>> So I want to take the file, "desktop/test.txt" and write it to
>>> "desktop/newfolder/test.txt". I tried the below script, and it gave
>>> me:
>>> "IOError: [Errno
1 - 100 of 122 matches
Mail list logo