[Python-bugs-list] [ python-Bugs-656049 ] string.trim does not have 2 arguments

noreply@sourceforge.net noreply@sourceforge.net
Wed, 18 Dec 2002 19:17:54 -0800


Bugs item #656049, was opened at 2002-12-18 19:14
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=656049&group_id=5470

Category: Documentation
Group: Python 2.2.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Michael Sowka (msowka)
Assigned to: Nobody/Anonymous (nobody)
Summary: string.trim does not have 2 arguments

Initial Comment:
2.2.2 python documentation lists string.trim having two
arguements:

strip(s[, chars])
    Return a copy of the string with leading and
trailing characters removed. If chars is omitted or
None, whitespace characters are removed. If given and
not None, chars must be a string; the characters in the
string will be stripped from the both ends of the
string this method is called on.

On my RedHat 8.0 version of python (2.2.1) string.strip
is only available with one argument, and I was able to
confirm with others running 2.2.2 that it acutally only
has 1. no 'chars' argument.

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-12-18 22:17

Message:
Logged In: YES 
user_id=33168

Sigh, you are correct that 2.2.1 (and 2.2) did not have two
arguments.  The second argument was inadvertantly added to
string objects in 2.2.2, though.

I believe the string module did not have the capability in
2.2.2.  However, to keep the string module and string object
in sync, both will have 2 arguments in 2.2.3.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=656049&group_id=5470