New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong unicode size detection in pybench #47342
Comments
In py3k, pybench wrongly detects UCS2 builds as UCS4. Patch attached. |
On 2008-06-12 21:50, Antoine Pitrou wrote:
Why is that ? Doesn't chr(100000) raise an exception in UCS2 builds ? unichr(100000) does raise an exception in Py2.x. Note that sys.maxunicode is not available in Python 2.1 |
Le jeudi 12 juin 2008 à 20:26 +0000, Marc-Andre Lemburg a écrit :
No, it returns a 2-character string.
I understand, but is the py3k version of pybench still |
Which hopefully is the proper surrogate sequence :) |
Well at least that's what the doc string says! |
On 2008-06-12 22:58, Antoine Pitrou wrote:
Interesting... I wonder how applications will deal with this. They'd I think chr() should only behave in this way if given an option. Something like chr(x, surrogates=True) to enable returning
You're right: probably not. Would be great to have the test on the Thanks,Marc-Andre Lemburg Professional Python Services directly from the Source (#1, Jun 12 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2008-07-07: EuroPython 2008, Vilnius, Lithuania 24 days to go :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
|
I'm not following you, what test are you talking about? |
On 2008-06-28 21:33, Antoine Pitrou wrote:
Sorry for the confusion. I was thinking of the new test added to |
Fixed in r65186 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: