RE: log4py confusion

2012-12-13 Thread Rob Richardson
=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

RE: log4py confusion

2012-12-13 Thread Rob Richardson
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

RE: log4py confusion

2012-12-13 Thread Rob Richardson
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

log4py confusion

2012-12-13 Thread Rob Richardson
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

How do I find out what file an import is using?

2012-05-09 Thread Rob Richardson
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

RE: How to stop the program as soon as one of the condition is met

2012-04-16 Thread Rob Richardson
Please show us your code. RobR -- http://mail.python.org/mailman/listinfo/python-list

PythonWin debugger holds onto global logging objects too long

2012-01-24 Thread Rob Richardson
? Thank you very much! Rob Richardson -- http://mail.python.org/mailman/listinfo/python-list

RE: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Rob Richardson
"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

RE: What replaces log4py under Python 3.2?

2011-11-23 Thread Rob Richardson
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

What replaces log4py under Python 3.2?

2011-11-22 Thread Rob Richardson
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

RE: Understanding def foo(*args)

2011-01-31 Thread Rob Richardson
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

RE: Help with code-lists and strings

2011-01-06 Thread Rob Richardson
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

RE: Help with code-lists and strings

2011-01-05 Thread Rob Richardson
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

RE: If/then style question

2010-12-17 Thread Rob Richardson
-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

RE: If/then style question

2010-12-17 Thread Rob Richardson
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'), > ]: >

RE: If/then style question

2010-12-17 Thread Rob Richardson
-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

RE: Exception handling in Python 3.x

2010-12-13 Thread Rob Richardson
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: