Shouldn't isnumeric and isdecimal apply to 8-bit strings as well? Are there localization issues with them that I'm blissfully unaware of? why not just add the methods there for consistency instead? -gps On 3/15/08, Neal Norwitz <nnorwitz at gmail.com> wrote: > > 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 > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/greg%40krypto.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20080315/be610518/attachment.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4