=rad-con@python.org] On Behalf Of
Rob Richardson
Sent: Thursday, December 13, 2012 2:52 PM
To: python-list@python.org
Subject: RE: log4py confusion
Thanks for the suggestion, but I don't think that can be it. At least, it's
not it on the line you specified. That form, with the t
t.
Thanks again!
RobR
-Original Message-
From: Python-list
[mailto:python-list-bounces+rob.richardson=rad-con@python.org] On Behalf Of
MRAB
Sent: Thursday, December 13, 2012 2:35 PM
To: python-list@python.org
Subject: Re: log4py confusion
On 2012-12-13 18:58, Rob Richardson wro
st-bounces+rob.richardson=rad-con@python.org] On Behalf Of
Rob Richardson
Sent: Thursday, December 13, 2012 1:58 PM
To: python-list@python.org
Subject: log4py confusion
Greetings!
I have finally gotten fed up with all of the Python scripts used in my company
that have every parameter hard-co
Greetings!
I have finally gotten fed up with all of the Python scripts used in my company
that have every parameter hard-coded. I am rewriting one of them to read all
of its parameters from an XML file. Then, we can change the XML file to
control which database it is using, whether its runn
I am trying to work with a Python script someone else wrote. The script
includes the line
from Level3Utils import *
I need to look at the functions that are included in that import. In an effort
to identify exactly which file is being used, I renamed the Level3Utils.py and
Level3Utils
Please show us your code.
RobR
--
http://mail.python.org/mailman/listinfo/python-list
?
Thank you very much!
Rob Richardson
--
http://mail.python.org/mailman/listinfo/python-list
"In America, they haven't spoken it for years!" -- Professor Henry Higgins, "My
Fair Lady"
-Original Message-
On 24/01/2012 05:57, Rick Johnson wrote:
I would wish that pedantic citizens of the British colony in America stopped
calling whatever misinterpreted waffle they produce, Englis
n.org
[mailto:python-list-bounces+rob.richardson=rad-con@python.org] On Behalf Of
Irmen de Jong
Sent: Tuesday, November 22, 2011 2:41 PM
To: python-list@python.org
Subject: Re: What replaces log4py under Python 3.2?
On 22-11-11 19:32, Rob Richardson wrote:
> Greetings!
>
> My company has
Greetings!
My company has been using the log4py library for a long time. A co-worker
recently installed Python 3.2, and log4py will no longer compile. (OK, I know
that's the wrong word, but you know what I mean.) What logging package should
be used now?
Thank you.
RobR
--
http://mail.pyth
My thanks both to the original poster and to JM for an excellent answer.
I saw this syntax for the first time recently, and I've been curious
about it too.
RobR
--
http://mail.python.org/mailman/listinfo/python-list
Cathy,
Please take another try at writing your program, using what advice you
have received so far that you understand. I think this discussion is
going rather far away from what you need, and seeing another step in the
evolution of your program should help bring it back on track.
I like your op
You take a sentence and break it up into words, storing it in a list
named "list". Then, for each word in the list, you set list2 to a
boolean value of true or false, depending on the result of isupper() and
istitle(). Note that the variable "list2" does not refer to a list. It
refers to whateve
-Original Message-
You have outlined what happens when cond1 and cond2 both evaluate to
True -- what happens if, say, cond2 evaluates to False?
- I reply
And the light goes on! (And palm strikes forehead.) I was thinking
that the error we were processing was raised by
My thanks for pointing out the existence of the else: suite in the for
statement. However, I remain confused. For reference, here's the
original code:
> def myMethod():
> for condition, exitCode in [
> (cond1, 'error1'),
> (cond2, 'very bad error'),
> ]:
>
-Original Message-
What about,
def myMethod():
for condition, exitCode in [
(cond1, 'error1'),
(cond2, 'very bad error'),
]:
if not condition:
break
else:
do_some_usefull_stuff() # executed only if the we never hit the
break
Arnaud,
Wouldn't your first suggestion exit after the first element in iterable?
And would your second suggestion throw an exception after normal
processing of all elements in the interator?
RobR
-Original Message-
I missed the start of this discussion but there are two simpler ways:
17 matches
Mail list logo