I’m pleased to announce IronPython 2.0 Beta 1. This particular release contains almost one hundred bug fixes of which the majority were reported on CodePlex (118 votes)! 2.0 Beta 1 includes the following improvements over the Alphas:
- PEP 328, absolute and relative imports, has been implemented
- PEP 302, new import hooks, has been implemented
- Numerous Python dictionary improvements
- ‘sys’ is now a real builtin module
- Test projects for IronPython .NET (ClrAssembly) and COM interop (DlrComLibrary) support have been added to the ‘Src\Tests’ directory within the source zip file
- More improvements to the –X:PreferComDispatch flag
DLR CHANGESThe hosting APIs are nearing completion and will be unlikely to change much in future IronPython 2.0 releases. For anyone interested, you might want to check out “EngineTest.cs” and “test_ipye.py” in the source zip file to get an idea of where the hosting APIs are for Beta 1. It’s also worth pointing out that the ‘CodeBlock’/’CodeBlockInfo’ AST symbols have been renamed to ‘LambdaExpression’ and ‘LambdaInfo’ respectively. The APIs around both of these changed significantly since the last release.
ToyScript, a small scripting language built on top of the DLR, is merely a DLR sample and not some new scripting language Microsoft has created. Also, ToyScript is not intended to be distributed with IronPython on a permanent basis.