<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Can someone please tell me the opposite of list("A", "b", "string")?  Or
maybe there's a smarter way to do what I'm trying to do.  I have a
dictionary that looks like this:
<p>    dtnA["key1"] = [val1, val2]
<br>    dtnA["key2"] = [val3, val4]
<br>    dtnA["key3"] = [val5, val6]
<p>I want to do something like this:
<p>def func(SearchTerm):
<br>  <...>
<br>    retval = []
<br>    for keyval in (dtnA.keys()):
<br>        mtch = re.search(patSrchTrm,
keyval)
<br>        if mtch:
<br>           
retval.append(UNLIST(dtnA[keyval]))
<p>I want to end up with just a list of matching values from the dictionary,
ala:
<br>    ['val1, val2', 'val3, val4']
<p>But I can only get a list of lists: [[val1,val2],[val3,val4]] - which
makes perfect sense based on how I'm doing it - but I don't WANT a list
of lists!  Is there anyway to do this?  I don't really want to
tuple-ize my dictionary since it's attached to its list values in other
ways.  It seems ugly to have to iterate my dictionary value list to
UN-list them manually - and the <i>repr</i> deal is REALLY ugly. What am
I missing??  Thanks for any help!
<p>Andy
<br> 
<br> </html>