[Ironpython-users] IronPython, Daily Digest 6/16/2012
no_reply at codeplex.com
no_reply at codeplex.com
Sun Jun 17 16:44:14 CEST 2012
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New issue] pybench 2.0 does not work
2. [New comment] pybench 2.0 does not work
----------------------------------------------
ISSUES
1. [New issue] pybench 2.0 does not work
http://ironpython.codeplex.com/workitem/32862
User slide_o_mix has proposed the issue:
"-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* using IronPython 2.7.2 (IronPython 2.7.2.1 (2.7.0.40) on .NET 4.0.30319.237 (64-bit))
<string>:1: RuntimeWarning: IronPython has no support for disabling the GC
* disabled garbage collection
* Python version doesn't support sys.setcheckinterval
* using timer: time.time
Creating benchmark: c:\Users\USER\Desktop\ipybench.pybench (rounds=10, warp=10)
Calibrating tests. Please wait... done.
Running 10 round(s) of the suite at warp factor 10:
Traceback (most recent call last):
File "pybench.py", line 959, in <module>
File "c:\Users\USER\Code\pybench\CommandLine.py", line 345, in __init__
File "pybench.py", line 926, in main
File "pybench.py", line 543, in run
File "c:\Users\USER\Code\pybench\pybench.py", line 325, in run
File "c:\Users\USER\Code\pybench\Unicode.py", line 482, in test
Exception: Exception of type 'System.Exception' was thrown."-----------------
2. [New comment] pybench 2.0 does not work
http://ironpython.codeplex.com/workitem/32862
User slide_o_mix has commented on the issue:
"It seems like unicodedata is not doing exactly what is expected
public static int digit(char unichr, int? @default = null)
{
try
{
int? d = GetInfo(unichr).Numeric_Value_Digit;
if(d.HasValue)
{
return d.Value;
}
else
{
if(@default.HasValue)
return @default.Value;
else
throw new Exception();
}
}
catch(KeyNotFoundException)
{
if(@default.HasValue)
return @default.Value;
else
throw new Exception();
}
}
The code that is throwing the exception is
digit(c, None) where digit is unicodedata.digit
From the Python docs, if a default is provided, it should be returned if the character is undefined.
'Returns the digit value assigned to the Unicode character unichr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised.'"
----------------------------------------------
----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.
To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120617/e2517576/attachment.html>
More information about the Ironpython-users
mailing list