RE: Pb with an AttributeError

2007-09-27 Thread Eric BOUVIER
: jeudi 27 septembre 2007 18:16 > À : Eric BOUVIER > Cc : python-list@python.org > Objet : Re: Pb with an AttributeError > > Hi, > > I m not sure what your trying to do, but this is where your > problem is: > > string1 is not a string it is actually a dict because of

Re: Pb with an AttributeError

2007-09-27 Thread Nathan Harmston
Did I just help someone with their homework? Hope not :S On 27/09/2007, Nathan Harmston <[EMAIL PROTECTED]> wrote: > Hi, > > I m not sure what your trying to do, but this is where your problem is: > > string1 is not a string it is actually a dict because of your eval. > When you call > string1["pa

Re: Pb with an AttributeError

2007-09-27 Thread Nathan Harmston
Hi, I m not sure what your trying to do, but this is where your problem is: string1 is not a string it is actually a dict because of your eval. When you call string1["param"] inside the string.split() it is returning a dictionary and not a string 'param': {'key': 'SP<136>=', 'value': ['SD:<0