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
> [
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
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
[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;