pylint #2481 there is still some useful stuff in string module [open]
notably some constants and the maketrans function. Cf http://lists.logilab.org/pipermail/python-projects/2004-August/000127.html | |
priority | normal |
---|---|
type | bug |
done in | <not specified> |
load | 0.500 |
load left | 0.500 |
closed by | <not specified> |
Comments
-
2009/05/04 05:45, written by anon
-
2009/10/05 20:18, written by anon
-
2011/01/21 12:33, written by anon
-
2011/01/21 12:33, written by anon
-
2011/04/21 06:54, written by anon
-
2011/07/31 22:26, written by anon
-
2012/06/12 13:29, written by anon
-
2013/03/11 12:04, written by anon
-
2013/03/11 12:09, written by acampeas
add commentI had some code that used the string.digits() method and got this message. Indeed, string objects do not contain all functionality in the string module, so it is not necessarily a universal replacement.
Please fix this. There is no sensible substitute for the constants in that package and it's best practice to use them.
Please fix this. There is no sensible substitute for the constants in that package and it's best practice to use them.
This definitely should not be the default behavior; string is not deprecated and contains useful constants.
And the string.Template class.
I prefer string.join(s, ",") to ",".join(s) which also gives a warning.
Please give this issue some more attention: it has been opened for nearly 4 years without as much as a squeak.
The deprecated functions are listed at http://docs.python.org/2/library/string.html#deprecated-string-functions
You know that sometimes, providing a patch (even an unperfect one) can be the fastest way to get something ?