posts - 257, comments - 1336, trackbacks - 63, articles - 8
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

IronPython的第九块鳞片

Posted on 2005-04-15 00:29 FantasySoft 阅读(1635) 评论(7)  编辑 收藏 网摘 所属分类: All About SoftSharp IronPython

        IronPython这次又给我们带来了惊喜,IronPython0.7.2发布了!这距上一个版本的发布只有十天时间,速度真的让人吃惊!这主要得益于广大程序员对IronPython的关注,从workspace上的active bugs在不断的增多就可见一斑了。我相信问题发现得越多,则完善得越快,1.0版本也就越完美,越值得期待。
        这一次新版本的发布主要还是修改了一些bugs:
        * Indexing .Net arrays, both single- and multi-dimensional 
        * Correct exception thrown on division by zero (ZeroDivisionError) 
        * string constant parsing fixed to handle unrecognized escape sequences correctly 
        * Complex slicing scenarios fixed
        * issubclass(class, instance) fixed to raise correct exception
        * chr(x) raises ValueError on invalid values
        * callable() implemented
        * object.__delattr__ implemented
        * Exception.args can now be accessed from Python code (this relates to the .Net array access)
        * str(None) is now handled correctly
        * Call with keyword args is fixed 
        * Invoking .Net properties with parameters (indexers) is now supported
        * .Net classes with static constructor can now be subclassed
        * max() and min() fixed to work on lists and support correct arguments
        * open file overloads are now implemented
        * complex() second argument is optional fixed
        * Implementation of long integer division. This enables us to run Parrotbench again.
        bugs的修改就不说了,新版本当中附带了一个example,以说明在IronPython当中如何使用Delegate。不怕您笑话,我对Delegate知之甚少——只是知道Delegate给我们提供了一种使用函数指针的方式,正好趁这个机会好好了解一下Delegate了。

Feedback

#1楼    回复  引用    

2005-04-15 09:30 by goolou [未注册用户]
C#的事件机制就是建立在Delegate之上的,搞.net的怎么能不知道呢。

#2楼    回复  引用    

2005-04-15 13:34 by Loviy.Net [未注册用户]
是不是只支持2.0 啊,
我在用IronPython0.6下的py在这个版本下怎么有好多错误!

#3楼    回复  引用    

2005-04-15 19:26 by 雨中漫步 [未注册用户]
怎么不能输出中文?

#4楼 [楼主]   回复  引用  查看    

2005-04-15 20:37 by FantasySoft      
To goolou:关注.NET太少,只知皮毛,请勿见笑。

#5楼    回复  引用    

2005-05-01 07:36 by goolou [未注册用户]
IronPython 0.7.3 Released
新版出来了。快去报道一下,更正了不少bug。

The main changes over the 0.7.2 release are:
* Operator overloading. Following code now works in IronPython:
...
x = Mapack.Matrix.Random(2,3)
y = Mapack.Matrix.Random(3,5)
x * y
* Empty constructors for value types:
x = Point()
x += Size(1,1)
* Numerous bug fixes


List of bugs fixed for the 0.7.3 release:
* __import__ not implemented and not hooked up into import statement
* Cannot import random.py
* Cannot import string.py
* Can't split string with multiple separators
* 2.5 rounds down to 2, etc
* string's count method throws an exception
* The built-in string method split doesn't take a second parameter.
* The builtin string method 'startswith' refuses to take 2 or 3 parameters.
* dictionary method 'get' broken with only 1 arg
* The dictionary method 'setdefault' refuses to take only one argument.
* The list method 'pop' refuses to take one argument.
* Can't read file via enumerator
* Octal numbers can contain 8s and 9s
* import accepts any string
* in-place add not implemented for lists
* File I/O can't be set to unbuffered (bufsize=0)
* Bit shift overflow does not convert to long
* Can't take the bitwise not of a long.
* dir doesn't work on an instantiated class
* del doesn't work on an instantiated class
* Point, Size missing empty constructors
* Point, Size missing overloads for +, -, +=, -=
* "*" operator overloading for Matrix does not kick in
* in-place assignments not supported by Complex
* Generators in nested functions throw code-gen time error.
* List.reverse() corrupts data
* Generate indexing by the tuple safely
* compile doesn't handle the 3rd argument correctly
* Method call to super class virtual method causes infinite recursion

#6楼    回复  引用  查看    

2005-05-03 00:23 by Fantasysoft      
To goolou:谢谢提醒~~~ 最近太忙,没有时间去认真思考,所以也就没有必要去写blog了。

#7楼    回复  引用    

2005-06-15 09:52 by 雨中漫步 [未注册用户]
有没有输出中文的办法?

标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2005-06-17 01:18 编辑过
"五向定位"职业成长路线公开课(上海、南京、大连)
Google站内搜索


相关链接: