Re: Reversing a dict?

2008-05-06 Thread krumblebunk
Thanks all!! kb. -- http://mail.python.org/mailman/listinfo/python-list

Reversing a dict?

2008-05-06 Thread krumblebunk
Hi - further to my earlier query regarding partial matches (which with all your replies enabled me to advance my understanding, thanks), I now need to reverse a dict. I know how to reverse a list (with the reverse method - very handy), but it doesn't seem possible to reverse a dict. I suspect wha

Re: Comparing strings - akin to Perl's "=~"

2008-05-06 Thread krumblebunk
On May 6, 2:23 pm, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote: > Without a explicit Python value of what comes out of the sql query, I can only > guess. As example, assume the following data: > > f = { 1: ['Hostname', 'blabla', 'person', 'john'], > 2: ['MachineName', 'blabla', 'company',

Comparing strings - akin to Perl's "=~"

2008-05-06 Thread krumblebunk
Hello gurus, I am learning Python to take the place of Perl in my toolbox of bits and bobs, and writing something pretty simple in theory, but having a hard time in Python with it - I am using a 3rd party module, and I am sure the etiquette of this channel states that this is pure Python questions