Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New comment] GetEncodings called in StringOps.cs fails using Mono
2. [New issue] super() does not preserve class

----------------------------------------------

ISSUES

1. [New comment] GetEncodings called in StringOps.cs fails using Mono
http://ironpython.codeplex.com/workitem/33646
User TRJG has commented on the issue:

"I just added a patch for the fix. Line 1885 in StringOps.cs

All I did was wrap the encoding name accessing in a try catch. If it fails, 
continue is called to try the next encoding."-----------------

2. [New issue] super() does not preserve class
http://ironpython.codeplex.com/workitem/33663
User mvdk has proposed the issue:

"In CPython 2.7.3, the following script:
class A(object):
        """A funny class A"""
        @classmethod
        def x(cls):
                print cls.__doc__

class B(A):
        """B funny class B"""
        @classmethod
        def x(cls):
                super(B,cls).x()

class C(B):
        """C funny class C"""
        pass

class D(B):
        """D funny class D"""
        @classmethod
        def x(cls):
                super(D,cls).x()

if __name__ == "__main__":
        B.x()
        C.x()
        D.x()

produces
B
C
D
whereas on IronPython 2.7.3, it produces
B
B
B

This is independent of @classmethod: The following also triggers:
class A(object):
        """A funny class A"""
        def x(cls):
                print cls.__doc__

class B(A):
        """B funny class B"""
        def x(cls):
                super(B,cls).x()

class C(B):
        """C funny class C"""
        pass

class D(B):
        """D funny class D"""
        def x(cls):
                super(D,cls).x()

if __name__ == "__main__":
        B().x()
        C().x()
        D().x()

with the same output"
----------------------------------------------



----------------------------------------------
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.
_______________________________________________
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to