[Ironpython-users] IronPython, Daily Digest 10/13/2014

CodePlex no_reply at codeplex.com
Tue Oct 14 09:21:52 CEST 2014


Hi ironpython,

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

In today's digest:ISSUES

1. [New comment] compile() does not recognize CO_FUTURE_PRINT_FUNCTION
2. [New issue] Installing a beta removes stable installation
3. [New comment] Installing a beta removes stable installation
4. [New issue] ScriptSource.Execute returns null if expression is inside a condition
5. [New comment] ScriptSource.Execute returns null if expression is inside a condition
6. [Status update] ScriptSource.Execute returns null if expression is inside a condition

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

ISSUES

1. [New comment] compile() does not recognize CO_FUTURE_PRINT_FUNCTION
http://ironpython.codeplex.com/workitem/35354
User jdhardy has commented on the issue:

"<p>Fixed in f064bdf.</p>"-----------------

2. [New issue] Installing a beta removes stable installation
http://ironpython.codeplex.com/workitem/35615
User MarkusSchaber has proposed the issue:

"Even though I chose a different installation directory when installing IronPython 2.7.5b2, it did uninstall my stable 2.7.4 installation.

This should be changed that several IronPython installations can reside on the same machine, as long as the user specifies different installation directories."-----------------

3. [New comment] Installing a beta removes stable installation
http://ironpython.codeplex.com/workitem/35615
User MarkusSchaber has commented on the issue:

"<p>Discussion on the mailing list:<br>https://mail.python.org/pipermail/ironpython-users/2014-October/017263.html<br></p>"-----------------

4. [New issue] ScriptSource.Execute returns null if expression is inside a condition
http://ironpython.codeplex.com/workitem/35617
User kbranch38 has proposed the issue:

"I'm trying to use IronPython as an expression evaluator by hosting it from .NET.  After I discovered the SourceCodeKind.AutoDetect option, it works great when the final statement is on its own, like this:
if True:
  y = "True"
else:
  y = "False"

y

ScriptSource.Execute will return "True" for the above, as expected.  However, this code will return null:
if True:
  "True"
else:
  "False"

This works as expected when entered into the IronPython interactive console, just not when run from the .NET hosting side.  The same seems to be true any time the desired return value is inside another statement (a loop, function, etc.).

Here's the hosting code (in VB.NET):
Dim engine As ScriptEngine = Python.CreateEngine()
Dim scope As ScriptScope = engine.CreateScope()
Dim source As ScriptSource = engine.CreateScriptSourceFromString(str, SourceCodeKind.AutoDetect)

Dim result As Object = source.Execute(scope)

Is this a known limitation?  Are there other options to achieve the same result?  I'm trying to make things as simple for the user as possible - the alternatives I've found so far require a little more from them, like setting a specific variable or using 'return' with their value."-----------------

5. [New comment] ScriptSource.Execute returns null if expression is inside a condition
http://ironpython.codeplex.com/workitem/35617
User jdhardy has commented on the issue:

"<p>It's a limitation of the Python language. In Ruby, if blocks are actually expressions and can have a return value like your example. In Python, they're statements and have no value. I'm afraid it can't be done in Python the way you want - the script writers will have to set a variable or use `return` or `yield`.</p>"-----------------

6. [Status update] ScriptSource.Execute returns null if expression is inside a condition
http://ironpython.codeplex.com/workitem/35617
User jdhardy has updated the issue:
Status has changed from Proposed to Closed with the following comment, 

"If you have any further questions, please ask on StackOverflow or the mailing list (http://ironpython.net/support/)."
----------------------------------------------



----------------------------------------------
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/20141014/72677954/attachment.html>


More information about the Ironpython-users mailing list