String functions deprication

2005-08-16 Thread steve morin
http://www.python.org/doc/2.4.1/lib/node110.html These methods are being deprecated. What are they being replaced with? Does anyone know? Steve -- http://mail.python.org/mailman/listinfo/python-list

String functions deprication

2005-08-16 Thread Dan
> http://www.python.org/doc/2.4.1/lib/node110.html > > These methods are being deprecated. What are they being replaced > with? They're being made methods of the string class itself. For example: >>> s = 'any old string' >>> string.split(s, ' ') # Old way ['any', 'old', 'string'] >>>

Re: String functions deprication

2005-08-16 Thread Tim Peters
[steve morin] > http://www.python.org/doc/2.4.1/lib/node110.html > > These methods are being deprecated. What are they being replaced > with? Does anyone know? As it says at the top of that page, The following list of functions are also defined as methods of string and Unicode objects;

Re: String functions deprication

2005-08-16 Thread Paul Watson
steve morin wrote: > http://www.python.org/doc/2.4.1/lib/node110.html > > These methods are being deprecated. What are they being replaced > with? Does anyone know? > > Steve It might be helpful to compare the following lists. Python 2.1 (#1, May 23 2003, 11:43:56) [C] on aix4 Type "copyright

Re: String functions deprication

2005-08-16 Thread Paul Watson
Sorry, the previous post was based on Python 2.1. That is probably not of much interest. How about 2.4.1? Python 2.4.1 (#1, Jul 19 2005, 14:16:43) [GCC 4.0.0 20050519 (Red Hat 4.0.0-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import string >>> dir

Re: String functions deprication

2005-08-17 Thread Reinhold Birkenfeld
Dan wrote: >> http://www.python.org/doc/2.4.1/lib/node110.html >> >> These methods are being deprecated. What are they being replaced >> with? > > They're being made methods of the string class itself. > > For example: > >>> s = 'any old string' > >>> string.split(s, ' ') # Old way > [