Re: How to cat None

2006-02-15 Thread LittlePython
Thx , I will give this a try. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Seems that what you want to do is to create a string in the form of : > > "55Init=Init\n55First=first\n55Last=Last\n55Alias=None" > > for each dictionary. If that is the case, may be you can try this : > >

Re: How to cat None

2006-02-14 Thread bonono
Seems that what you want to do is to create a string in the form of : "55Init=Init\n55First=first\n55Last=Last\n55Alias=None" for each dictionary. If that is the case, may be you can try this : "\n".join("%s=%s" % x for x in user1.iteritems()) Note that you cannot control the ordering of the ke

Re: How to cat None

2006-02-14 Thread rtilley
LittlePython wrote: I am not too sure I know what None really means. It means null, void or lack of value. It is not an empty string. You can't add None to stings. >>> r = None >>> print r None >>> print type(r) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to cat None

2006-02-14 Thread Jonathan Gardner
You can just surround the offending value with str(...). You should probably be doing that anyway, because the value might be a number or something else not stringish. -- http://mail.python.org/mailman/listinfo/python-list

How to cat None

2006-02-14 Thread LittlePython
I found out the hard way that I can not cat None. I get an error. Is there a simple way to cat None without doing some kind of equation ( if this then that). Is there a isNone() somewhere. I am not too sure I know what None really means. I include an example to show what I am talking about in cas