string() - Is this some kind of sick joke?

Raseliarison nirinA nirina at mail.blueline.mg
Fri Apr 11 12:28:33 CEST 2003


Python22
>>> y="'hello'"
>>> help(y.strip)
Help on built-in function strip:
strip(...)
    S.strip() -> string
    
    Return a copy of the string S with leading and trailing
    whitespace removed.


Python23
>>> y="'hello'"
>>> help(y.strip)
Help on built-in function strip:
strip(...)
    S.strip([sep]) -> string or unicode
    
    Return a copy of the string S with leading and trailing
    whitespace removed.
    If sep is given and not None, remove characters in sep instead.
    If sep is unicode, S will be converted to unicode before stripping


So I think you do have Python2.3 to use full feature of strip

nirinA








More information about the Python-list mailing list