Standard Lib Func for string type?
- Posted by euphoric (admin) Apr 20, 2009
- 813 views
Is there a function or type definition in the standard library for a string type? Basically, I just want to distinguish between "this is a string" and { "this is a string" }, one of which is a string and the other is a sequence of strings.
If there is not yet one, I would suggest at least an all_atoms() function, which returns True if all elements of the sequence are atoms.