Message10248

Author jeff.allen
Recipients jeff.allen
Date 2015-09-10.22:07:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441922838.41.0.727652768132.issue2394@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed when working on #2364 that PyString exposes methods that belong to PyUnicode. Previous to that fix there was delegation from PyUnicode to these methods for the basic plane case. It was probably always wrong to have exposed them.

>>> [s for s in dir(str) if s.startswith('is')]
['isalnum', 'isalpha', 'isdecimal', 'isdigit', 'islower', 'isnumeric', 'isspace', 'istitle', 'isunicode', 'isupper']

They are in the public Java API of PyString, so I'm reluctant just to delete them without discussion.
History
Date User Action Args
2015-09-10 22:07:18jeff.allensetrecipients: + jeff.allen
2015-09-10 22:07:18jeff.allensetmessageid: <1441922838.41.0.727652768132.issue2394@psf.upfronthosting.co.za>
2015-09-10 22:07:18jeff.allenlinkissue2394 messages
2015-09-10 22:07:18jeff.allencreate