[Python-Dev] difference between diff string implementations

Neal Norwitz nnorwitz at gmail.com
Sat Mar 15 23:54:54 CET 2008


This inconsistency goes back to 2.3 at least and probably to the
initial unicode implementation.

>>> set(dir(u'')) - set(dir(''))
['isnumeric', 'isdecimal']

UserString contains these two methods even though 8-bit strings do
not.  I'm not sure what we should do for 2.6 or 3.0.  My preference
would be to remove these methods on unicode/UserString if they aren't
useful to a large audience.  However, removing for 2.6 without a
deprecation seems bad.

Suggestions?

n


More information about the Python-Dev mailing list