How to tell the difference between string and list
John J. Lee
jjl at pobox.com
Fri Dec 5 15:24:02 EST 2003
More information about the Python-list mailing list
Fri Dec 5 15:24:02 EST 2003
- Previous message (by thread): How to tell the difference between string and list
- Next message (by thread): How to tell the difference between string and list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
bokr at oz.net (Bengt Richter) writes: [...] > >>> s2 = ['abc','def'] [...]> > >>> s2 += 'ghi' > >>> s2 > ['abc', 'def', 'g', 'h', 'i'] That's not what the code I posted tests for. And the fact that having a+b not raise TypeError breaks that function seems to me to be a good reason not to do that. John
- Previous message (by thread): How to tell the difference between string and list
- Next message (by thread): How to tell the difference between string and list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list