Comparing Dictionaries

2007-07-26 Thread Kenneth Love
' : 'mickey' } { 'dog' : 'bone', 'cat' : 'fever', 'mouse' : 'michael' } Any suggestions on how to compare these via some assert statement? Am I even on the right track with the INI file storing

Re: Comparing Dictionaries

2007-07-27 Thread Kenneth Love
At 09:55 PM 7/26/2007, Ben Finney wrote: >Kenneth Love <[EMAIL PROTECTED]> writes: > > > In other words, I consider these two dictionaries to be equivalent: > > > > { 'dog' : 'bone', 'cat' : 'fever', 'mouse

Re: Comparing Dictionaries

2007-07-27 Thread Kenneth Love
At 04:42 AM 7/27/2007, Ali wrote: >On Jul 26, 10:18 pm, Kenneth Love <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I am new to Python, but not programming. I would like to start my > > Python career by developing programs according to the "best practices&

Fwd: Re: Comparing Dictionaries

2007-07-30 Thread Kenneth Love
>From: "Steven D'Aprano" <[EMAIL PROTECTED]> >Newsgroups: comp.lang.python >Subject: Re: Comparing Dictionaries >Date: Sat, 28 Jul 2007 10:21:14 +1000 >To: python-list@python.org > >On Fri, 27 Jul 2007 14:11:02 -0500, Kenneth Love wrote: > > > T

Re: Comparing Dictionaries

2007-07-30 Thread Kenneth Love
it_testing/index.html I will search on Google for more info on Doctest. Thanks! Sincerely, Kenneth Love -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Kenneth Love | Oklahoma Tax Commission DP Programmer/Analyst |

Accessing docstrings at runtime?

2007-08-29 Thread Kenneth Love
--- test str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object. --------- What am I doing wrong? adTHANKSvance, Kenneth Love P.S. If I want a docstring an

Re: Accessing docstrings at runtime?

2007-08-29 Thread Kenneth Love
On 08/29/07, Chris Mellon <[EMAIL PROTECTED]> wrote: > On 8/29/07, Kenneth Love <[EMAIL PROTECTED]> wrote: >> How do I print the docstring for a class property? >> >> [[[ SNIP EXAMPLE ]]] >> >> What am I doing wrong? >> > > You're

Overriding Logging Config FileHandler Filename

2007-09-25 Thread Kenneth Love
') log = logging.getLogger('mymain') log.info('START: mymain.py') log.info('FINISH: mymain.py') -- adTHANKSvance, Kenneth Love -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Kenneth Love

Re: Overriding Logging Config FileHandler Filename

2007-10-01 Thread Kenneth Love
> On Sep 26, 1:07 am, "Vinay Sajip" <[EMAIL PROTECTED]> wrote: >> On Sep 25, 9:15 pm, "Kenneth Love" <[EMAIL PROTECTED]> wrote: >> I have a Pythonloggingconfig file that contains a RotatingFileHandler >> handler. In the args key, I have hard-