[IronPython] Announcing IronPython 2.0 RC2

Vernon Cole vernondcole at gmail.com
Mon Dec 1 21:09:29 CET 2008


Congratulations and "Well Done" to the Iron Python team!
This release has taken Iron Python from an experimental curiosity to a
viable work engine (IMHO).

I ran my test suite and found only one remaining restriction -- Binary data
cannot be passed as a parameter. (The same error shows up four times in
testing because six different environments are used. It passes all tests
under mySQL which does not attempt Binary.)

I am enclosing an edited copy of the test results to document the result I
found most surprising: Iron Python was faster than CPython in each test
case!

The test was set up as follows:
Workstation: A mid-range HP minitower with a dual-core 2.4GHz CPU and 2 GB
ram running XP Pro.
ACCESS database built on the local C: drive.
MS SQL database on a venerable SQL2000 server somewhere over the fiber.
mySQL on an old Ubuntu workstation under my desk.

Each test is run once with datetime.datetime dates and once with time.gmtime
dates. (Unrelated Question: Why is datetime.datetime so *much* slower???)
Then a generic test for dbapi 2.0 compliance is run.

V v v v v v v v v Begin CPython Tests v v v v v v v v v v v v
...Lib\site-packages\adodbapi\tests>adodbapitest.py

2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
adodbapi v2.2.4
adodbapitestconfig.py v 2.2.4
    ...Creating ACCESS db at c:\docume~1\wnvcole\locals~1\temp\test_odbc.mdb
    ...Testing MS-SQL login...
    ...Testing MySql login...
 Unit tests for adodbapi version 2.2.4
Default Date Converter is <adodbapi.pythonDateTimeConverter object at
0x00C54470
...................................................................................................
----------------------------------------------------------------------
Ran 99 tests in 11.125s

OK
Changed dateconverter to <adodbapi.pythonTimeConverter object at 0x01349BB0>
................................................................................
...................
----------------------------------------------------------------------
Ran 99 tests in 4.344s

OK
. . . . . . . . . . . . . . .
...Lib\site-packages\adodbapi\tests>test_adodbapi_dbapi20.py
This module depends on the dbapi20 compliance tests created by Stuart Bishop
(see db-sig mailing list history for info)
Tested with dbapi20 1.10
2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
adodbapi v2.2.4
adodbapitestconfig.py v 2.2.4
    ...Creating ACCESS db at c:\docume~1\wnvcole\locals~1\temp\test_odbc.mdb
    ...Testing MS-SQL login...
    ...Testing MySql login...
....................................
----------------------------------------------------------------------
Ran 36 tests in 2.203s

OK
V v v v v v v v v Begin IronPython Tests v v v v v v v v v v v v
...\Lib\site-packages\adodbapi\tests>"C:\Program Files\IronPython
2.0\ipy.exe" adodbapitest.py
2.5.0 (IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1433)
adodbapi v2.2.4
adodbapitestconfig.py v 2.2.4
    ...Creating ACCESS db at c:\documents and settings\wnvcole\local
settings\temp\test_odbc.mdb
    ...Testing MS-SQL login...
    ...Testing MySql login...
 Unit tests for adodbapi version 2.2.4
Default Date Converter is <pythonDateTimeConverter object at
0x000000000000002B>

............................E......................E...............................................
======================================================================
ERROR: testDataTypeBinary (__main__.TestADOwithAccessDB)
----------------------------------------------------------------------
[...snip...Traceback ...]
  File "C:\Program Files\IronPython
2.0\Lib\site-packages\adodbapi\adodbapi.py", line 685, in _executeHelper
    p.AppendChunk(elem)
TypeError: Specified cast is not valid.
-- on command: "INSERT INTO tblTemp (fldId,fldData) VALUES (?,?)"
-- with parameters: (2, <read-only buffer for 0x000000000000002C, size 4,
offset 0 at 0x000000000000002D>)
======================================================================
ERROR: testDataTypeBinary (__main__.TestADOwithSQLServer)
----------------------------------------------------------------------
[...snip (same error) ...]
----------------------------------------------------------------------
Ran 99 tests in 9.516s

FAILED (errors=2)
Changed dateconverter to <pythonTimeConverter object at 0x0000000000000032>
............................E......................E...............................................
======================================================================
ERROR: testDataTypeBinary (__main__.TestADOwithAccessDB)
----------------------------------------------------------------------
[...snip (same error) ...]
======================================================================
ERROR: testDataTypeBinary (__main__.TestADOwithSQLServer)
----------------------------------------------------------------------
[...snip (same error) ...]
----------------------------------------------------------------------
Ran 99 tests in 2.453s

FAILED (errors=2)
. . . . . . .
...\Lib\site-packages\adodbapi\tests>"C:\Program Files\IronPython
2.0\ipy.exe" test_adodbapi_dbapi20.py
This module depends on the dbapi20 compliance tests created by Stuart Bishop
(see db-sig mailing list history for info)
Tested with dbapi20 1.10
2.5.0 (IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1433)
adodbapi v2.2.4
adodbapitestconfig.py v 2.2.4
    ...Creating ACCESS db at c:\documents and settings\wnvcole\local
settings\temp\test_odbc.mdb
    ...Testing MS-SQL login...
    ...Testing MySql login...
....................................
----------------------------------------------------------------------
Ran 36 tests in 2.125s

OK
^ ^ ^ ^ ^ ^ end of tests ^ ^ ^ ^ ^ ^
Vernon Cole

On Wed, Nov 26, 2008 at 5:06 PM, Srivatsn Narayanan
<srivatsn at microsoft.com>wrote:

>  [...]
>
> List of bugs fixed for this release:...
> -          19130: One hour error in IPY implementation of time.mktime and
> time.gmtime
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081201/5ca2e444/attachment.html>


More information about the Ironpython-users mailing list