[Ironpython-users] IronPython, Daily Digest 1/14/2013

no_reply at codeplex.com no_reply at codeplex.com
Tue Jan 15 13:16:10 CET 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130115/bcb77612/attachment.html>


More information about the Ironpython-users mailing list