Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New comment] cannot import idna from encodings (Ipy 2.7.3)
2. [New comment] zlib - ValueError: Invalid initialization option
3. [New comment] zlib - ValueError: Invalid initialization option
4. [New issue] built-in translate throws TypeError
5. [New issue] unexpected behaviour when IOError used as superclass
----------------------------------------------
ISSUES
1. [New comment] cannot import idna from encodings (Ipy 2.7.3)
http://ironpython.codeplex.com/workitem/34651
User paweljasinski has commented on the issue:
"<p>I think there is something wrong in installation/packaging. When I run the
ipy out of my development location, it works as expected. When I run ipy out of
install dir (c:\Program Files (x86)\IronPython27) it doesn't.<br>I also tried
on the separate Windows machine without any development tools installed with
fresh new installation of 2.7.5b2 - it doesn't work.</p>"-----------------
2. [New comment] zlib - ValueError: Invalid initialization option
http://ironpython.codeplex.com/workitem/35295
User paweljasinski has commented on the issue:
"<p>workaround:<br>```<br>with open("chunk.gz","r") as
f:<br> data = f.read()<br>import zlib<br>d =
zlib.decompressobj(-zlib.MAX_WBITS)<br>print
d.decompress(data[10:])</p>"-----------------
3. [New comment] zlib - ValueError: Invalid initialization option
http://ironpython.codeplex.com/workitem/35295
User paweljasinski has commented on the issue:
"<p>workaround:<br>```<br>with open("chunk.gz","r") as
f:<br> data = f.read()<br>import zlib<br>d =
zlib.decompressobj(-zlib.MAX_WBITS)<br>print
d.decompress(data[10:])<br>```</p><p>The edit button on your own post is
missing :-(</p>"-----------------
4. [New issue] built-in translate throws TypeError
http://ironpython.codeplex.com/workitem/35296
User paweljasinski has proposed the issue:
"the following code:
import string
d=dict([(ord(c), ord(c.lower())) for c in string.ascii_uppercase])
print u"A".translate(d)
results in:
Traceback (most recent call last):
File "translate.py", line 3, in <module>
TypeError: Unable to cast object of type 'System.Int32' to type 'System.String'.
"-----------------
5. [New issue] unexpected behaviour when IOError used as superclass
http://ironpython.codeplex.com/workitem/35300
User paweljasinski has proposed the issue:
"This snippet works in cpython, but fails in iron:
class RequestException(IOError):
def __init__(self, *args, **kwargs):
self.response = kwargs.pop('response', None)
super(RequestException, self).__init__(*args, **kwargs)
class HTTPError(RequestException):
"""An HTTP error occurred."""
raise HTTPError("a", response="b")
the reported error is:
Traceback (most recent call last):
File "httpex.py", line 13, in <module>
TypeError: HTTPError() takes at least 1 argument (3 given)
when the IOError is changed to Exception, things are back to normal"
----------------------------------------------
----------------------------------------------
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
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users