Message10249

Author jeff.allen
Recipients jeff.allen, ztane, zyasoft
Date 2015-09-10.23:05:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441926303.79.0.58200074218.issue2364@psf.upfronthosting.co.za>
In-reply-to
Content
In order to fix this I have:
1. implemented character classifiers (isalpha, etc.) in BaseBytes.
2. re-implemented the BaseBytes methods using these classifiers.
3. made PyUnicode not depend on PyString for these operations.
4. given PyString implementations that use the BaseBytes.isalpha, etc.

Benchmarks show the new PyString methods to be a little quicker than the old ones (as you might hope, given the simplification). Change sets:
https://hg.python.org/jython/rev/50082331db8d
and successors address this.

There are still parts of PyString that use Character.is* methods, for example the transformation methods lower, upper, title.
History
Date User Action Args
2015-09-10 23:05:03jeff.allensetmessageid: <1441926303.79.0.58200074218.issue2364@psf.upfronthosting.co.za>
2015-09-10 23:05:03jeff.allensetrecipients: + jeff.allen, zyasoft, ztane
2015-09-10 23:05:03jeff.allenlinkissue2364 messages
2015-09-10 23:05:03jeff.allencreate