[Ironpython-users] IronPython, Daily Digest 3/20/2012

no_reply at codeplex.com no_reply at codeplex.com
Wed Mar 21 16:31:33 CET 2012


Hi ironpython,

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

In today's digest:ISSUES

1. [New comment] 2.7.2.1 "load language" problem
2. [New issue] incorrect generator variable scope
3. [New comment] incorrect generator variable scope

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

ISSUES

1. [New comment] 2.7.2.1 "load language" problem
http://ironpython.codeplex.com/workitem/32452
User Snake38 has commented on the issue:

"My ipy.exe.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <!-- Enable mixed-mode CLRv2 assemblies. -->
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" />
  </startup>

  <runtime>
    <!-- Enable loading assemblies from network shares or downloaded from the internet. -->
    <loadFromRemoteSources enabled="true"/>
  </runtime>
</configuration>

http://i.imgur.com/lzFyQ.png

I have Polish version of system. 
"-----------------

2. [New issue] incorrect generator variable scope
http://ironpython.codeplex.com/workitem/32465
User jonathanhiga has proposed the issue:

"IronPython 2.7.2.1 fails the attached IronPythonTestCase.test_generator_scope test.

$ ipy -m testipy IronPythonTestCase.test_generator_scope
E
======================================================================
ERROR: test_generator_scope (__main__.IronPythonTestCase)
Test the scopes of the variables in a nested generator.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Z:\Developer\qmdl_test\lib\testipy.py", line 50, in test_generator_scope
    columns = {row['column_name']: row['data_type'].lower()
  File "Z:\Developer\qmdl_test\lib\testipy.py", line 53, in <genexpr>
    any(p.lower() in row['column_name'].lower()
NameError: global name 'row' is not defined

----------------------------------------------------------------------
Ran 1 test in 0.219s

FAILED (errors=1)"-----------------

3. [New comment] incorrect generator variable scope
http://ironpython.codeplex.com/workitem/32465
User jonathanhiga has commented on the issue:

"Interactive summary:

IronPython 2.7.2.1 (2.7.0.40) on .NET 4.0.30319.239 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> metadata = [{'column_name': 'splunge', 'data_type': 'varchar(128)'}]
>>> patterns = ['lunge']
>>> columns = {row['column_name']: row['data_type'].lower()
...                   for row in metadata
...                   if patterns is None or
...                   any(p.lower() in row['column_name'].lower()
...                       for p in patterns)}
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 4, in <genexpr>
NameError: global name 'row' is not defined"
----------------------------------------------



----------------------------------------------
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/20120321/69b4091d/attachment.html>


More information about the Ironpython-users mailing list