[Ironpython-users] IronPython, Daily Digest 9/26/2014

CodePlex no_reply at codeplex.com
Sat Sep 27 09:23:28 CEST 2014


Hi ironpython,

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

In today's digest:ISSUES

1. [New issue] ast.literal_eval in IronPython raises exception for negative numbers in expressions

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

ISSUES

1. [New issue] ast.literal_eval in IronPython raises exception for negative numbers in expressions
http://ironpython.codeplex.com/workitem/35572
User s3e3 has proposed the issue:

"Interactive session in CPython 2.7.5 and 3.4.0:
>>> import ast
>>> ast.literal_eval('-1')
-1

Interactive session in IronPython 2.7.3 and 2.7.5beta2:
>>> import ast
>>> ast.literal_eval('-1')
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\ast.py", line 80, in literal_eval
    return _convert(node_or_string)
  File "C:\Program Files (x86)\IronPython 2.7\Lib\ast.py", line 79, in _convert
    raise ValueError('malformed string')
ValueError: malformed string

I came accross this issue while trying to use IronPython and jenkinsapi python package for access to our Jenkins instance. One of parameters in return expression string from Jenkins job had negative number which caused exception, which is obviously not expected to happen."
----------------------------------------------



----------------------------------------------
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/20140927/e12eca15/attachment.html>


More information about the Ironpython-users mailing list