Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New comment] BaseHTTPServer doesn't accept empty string as server address
like CPython does
2. [New comment] ast.literal_eval in IronPython raises exception for negative
numbers in expressions
----------------------------------------------
ISSUES
1. [New comment] BaseHTTPServer doesn't accept empty string as server address
like CPython does
http://ironpython.codeplex.com/workitem/29477
User paweljasinski has commented on the issue:
"<p>I found this old
post.<br>http://lists.ironpython.com/pipermail/users-ironpython.com/2010-April/012518.html</p><p>socket.getfqdn
does not behave as expected.</p><p>```<br>>>> import
socket<br>>>> socket.getfqdn()<br>''<br>>>>
socket.getfqdn("")<br>''<br>>>>
socket.getfqdn("0.0.0.0")<br>Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>ValueError: IPv4
address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be
used as<br>a target address.<br>Parameter name:
hostNameOrAddress<br>```</p>"-----------------
2. [New comment] ast.literal_eval in IronPython raises exception for negative
numbers in expressions
http://ironpython.codeplex.com/workitem/35572
User paweljasinski has commented on the issue:
"<p>The formatting is giving me a headache. I swear it looked good in
preview.<br>This is one more test:</p><p>```<br>import ast</p><p>class
Fix(ast.NodeTransformer):<br> def visit_UnaryOp(self, node):<br> if
isinstance(node.operand, ast.Num):<br> if isinstance(node.op,
ast.USub):<br> node.operand.n=-node.operand.n<br>
return node.operand<br> if isinstance(node.op, ast.UAdd):<br>
return node.operand<br> return node</p><p>def
literal_eval_fix(string_only):<br> tree = ast.parse(string_only,
mode="eval" )<br> tree = Fix().visit(tree)<br> return
ast.literal_eval(tree)</p><p>print literal_eval_fix("42")<br>print
literal_eval_fix("-42")<br>print literal_eval_fix("{ -1:-2,
2:'aaaaa'}")<br>``` </p>"
----------------------------------------------
----------------------------------------------
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