On Thu, Mar 31, 2005 at 08:32:20PM -0800, Andreas Beyer wrote: > Hi: > > If I am getting the docs etc. correctly, the string-module is depricated > and is supposed to be removed with the release of Python 3.0. > I still use the module a lot and there are situations in which I don't > know what to do without it. Maybe you can give me some help. > > I loved to use > >>> string.join(list_of_str, sep) > instead of > >>> sep.join(list_of_str) > > I think the former is much more telling what is happening than the > latter. However, I will get used to it. > > But what about this: > >>> upper_list = map(string.upper, list_of_str) > > What am I supposed to do instead? > >>> map(str.upper, 'huzza!') ['H', 'U', 'Z', 'Z', 'A', '!'] >>>
It doesn't work when passed a unicode string, but if you don't care about that just start typing 'str' instead of 'string' -jackdied -- http://mail.python.org/mailman/listinfo/python-list