install warning

jepler at jepler at
Thu Nov 3 04:38:44 CET 2005

You are importing and using, directly or indirectly, the "strop" module.

Here's an example from the interactive interpreter which triggers the warning:

$ python2.3
Python 2.3.3 (#1, May  7 2004, 10:31:40) 
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import strop
>>> strop.strip(" abc ")
__main__:1: DeprecationWarning: strop functions are obsolete; use string methods

Most of the things in strop are now simply methods on string objects:
>>> " abc ".strip()

Another way to prevent the warning from being printed is through use of the
'warnings' module, which is documented on

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list