[Ironpython-users] IronPython, Daily Digest 2/10/2012

no_reply at codeplex.com no_reply at codeplex.com
Sat Feb 11 13:02:23 CET 2012


Hi ironpython,

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

In today's digest:ISSUES

1. [Status update] IronPython 2.0 Beta3 has memory leak in WCF programming
2. [Status update] 1.1.3: AttributeError in property getter (1.1.2 only)
3. [New comment] Quoting in MSBuild files
4. [New comment] Ctl-Z doesn't throw EOF error in raw_input()
5. [Status update] sys.ps1, sys.ps2 should change the prompt displayed in the interactive command window
6. [New comment] Memory leak in IP 2.0B5 when using N ScriptRuntimes
7. [New comment] (Legacy) test_numtypes.py runs very slowly against IronPython 2.x
8. [Status update] IronPython allows "del ()"
9. [New comment] IronPython allows yield in class definition if nested in a function def
10. [Status update] ValueError: Length cannot be less than 0 or exceed input length
11. [Status update] Legacy test_dllsite.py fails with SystemError exception on bad import (should be ImportError)
12. [Status update] IronPython: test_weakref.py fails on merlin-18
13. [New comment] test_delegate.py broken on 2k3 and XP
14. [Status update] test_delegate.py broken on 2k3 and XP
15. [New comment] test_strptime function of the (CPython) test_time.py test fails
16. [Status update] Ironpython throw "EOFError: Unable to read beyond the end of the stream." but Cpython does not throw.
17. [New comment] ImportError: No module named __hello__,__phello__
18. [Status update] Empty module has more items
19. [Status update] Hosting: Import a module on a ScriptScope
20. [New comment] Hosting: Import a module on a ScriptScope
21. [Status update] Hosting: Import a module on a ScriptScope
22. [New comment] IP 2.7.1 xml.etree.Elementree#iterparse is not working

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

ISSUES

1. [Status update] IronPython 2.0 Beta3 has memory leak in WCF programming
http://ironpython.codeplex.com/workitem/17331
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"Can't reproduce"-----------------

2. [Status update] 1.1.3: AttributeError in property getter (1.1.2 only)
http://ironpython.codeplex.com/workitem/18618
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"Works in 2.7.1"-----------------

3. [New comment] Quoting in MSBuild files
http://ironpython.codeplex.com/workitem/20262
User slide_o_mix has commented on the issue:

"Jeff since you've recently redone the build can you double check this?"-----------------

4. [New comment] Ctl-Z doesn't throw EOF error in raw_input()
http://ironpython.codeplex.com/workitem/22140
User slide_o_mix has commented on the issue:

"The issue is in PythonFile::ReadLine

// Read characters up to and including a '\r\n', converted to '\n' (or until EOF or the given size, in
        // which case the string will not be newline terminated).
        public override String ReadLine(int size) {
            StringBuilder sb = null;
            // start off w/ some text
            if (_bufPos >= _bufLen) ReadBuffer();
            if (_bufLen == 0) return String.Empty;

That last item should probably be:

if(_bufLen == 0) throw PythonOps.EofError(string.Empty);

"-----------------

5. [Status update] sys.ps1, sys.ps2 should change the prompt displayed in the interactive command window
http://ironpython.codeplex.com/workitem/4299
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"This works in 2.7.1"-----------------

6. [New comment] Memory leak in IP 2.0B5 when using N ScriptRuntimes
http://ironpython.codeplex.com/workitem/20296
User slide_o_mix has commented on the issue:

"Need a test case to reproduce this with."-----------------

7. [New comment] (Legacy) test_numtypes.py runs very slowly against IronPython 2.x
http://ironpython.codeplex.com/workitem/24011
User slide_o_mix has commented on the issue:

"This took 8 minutes on the following setup:

OS: x64 Windows 7
CPU: Intel Core i5
Memory: 6GB"-----------------

8. [Status update] IronPython allows "del ()"
http://ironpython.codeplex.com/workitem/24756
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"Works in 2.7.1

test_filename (__main__.CodeopTests) ... ok
test_incomplete (__main__.CodeopTests) ... ok
test_invalid (__main__.CodeopTests) ... ok
test_valid (__main__.CodeopTests) ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.124s

OK"-----------------

9. [New comment] IronPython allows yield in class definition if nested in a function def
http://ironpython.codeplex.com/workitem/26496
User slide_o_mix has commented on the issue:

">>> def f():
...     class C:
...             yield 42
...     return C
...
>>> f().next()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in f
NotImplementedError: The method or operation is not implemented.
>>>
Unhandled Exception: System.NotImplementedException: The method or operation is not implemented.
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileTryExpression(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)
   at Microsoft.Scripting.Interpreter.LightCompiler.CompileTop(LightLambdaExpression node)
   at Microsoft.Scripting.Ast.LightLambdaExpression.Compile(Int32 compilationThreshold)
   at IronPython.Runtime.FunctionCode.CompileLambda(LightLambdaExpression code, EventHandler`1 handler)
   at IronPython.Runtime.FunctionCode.UpdateDelegate(PythonContext context, Boolean forceCreation)
   at IronPython.Compiler.Ast.ClassDefinition.<>c__DisplayClass2.<Reduce>b__0(Object x)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, B
oolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()"-----------------

10. [Status update] ValueError: Length cannot be less than 0 or exceed input length
http://ironpython.codeplex.com/workitem/23768
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"While we don't pass the re test suite, there is no longer a ValueError raised."-----------------

11. [Status update] Legacy test_dllsite.py fails with SystemError exception on bad import (should be ImportError)
http://ironpython.codeplex.com/workitem/23710
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"This raises ImportError on 2.7.1"-----------------

12. [Status update] IronPython: test_weakref.py fails on merlin-18
http://ironpython.codeplex.com/workitem/24056
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"Unable to reproduce."-----------------

13. [New comment] test_delegate.py broken on 2k3 and XP
http://ironpython.codeplex.com/workitem/23719
User slide_o_mix has commented on the issue:

"Works with 2.7.1 on my XP machine

>>>   0.00s testing test_AddDelegateFromCSharpAndRemoveFromPython
>>>   0.01s testing test_AddRemoveDelegateFromPython
>>>   0.02s testing test_basic
>>>   0.10s testing test_bound_builtin_functions
>>>   0.13s testing test_combine
>>>   0.14s testing test_delegate___call__
>>>   0.20s testing test_error_message
>>>   0.21s testing test_event_as_attribute_disallowed_ops
>>>   0.21s testing test_event_handler_add_removal_sequence
>>>   0.22s testing test_event_lifetime
>>>   0.79s testing test_handler_get_invoked
>>>   0.80s testing test_python_code_as_event_handler
>>>   0.80s testing test_reflected_event_ops
>>>   0.81s testing test_strongly_typed_events

14 tests passed"-----------------

14. [Status update] test_delegate.py broken on 2k3 and XP
http://ironpython.codeplex.com/workitem/23719
User slide_o_mix has updated the issue:
Status has changed from Active to Closed.

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

15. [New comment] test_strptime function of the (CPython) test_time.py test fails
http://ironpython.codeplex.com/workitem/23712
User slide_o_mix has commented on the issue:

"Different errors now.

test_asctime (__main__.TimeTestCase) ... ok
test_clock (__main__.TimeTestCase) ... ok
test_conversions (__main__.TimeTestCase) ... ok
test_ctime_without_arg (__main__.TimeTestCase) ... ok
test_data_attributes (__main__.TimeTestCase) ... ok
test_default_values_for_zero (__main__.TimeTestCase) ... ERROR
test_gmtime_without_arg (__main__.TimeTestCase) ... ok
test_insane_timestamps (__main__.TimeTestCase) ... ok
test_localtime_without_arg (__main__.TimeTestCase) ... ok
test_sleep (__main__.TimeTestCase) ... ok
test_strftime (__main__.TimeTestCase) ... ok
test_strftime_bounds_checking (__main__.TimeTestCase) ... ok
test_strptime (__main__.TimeTestCase) ... FAIL
test_tzset (__main__.TimeTestCase) ... ok

======================================================================
ERROR: test_default_values_for_zero (__main__.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line
 96, in test_default_values_for_zero
    result = time.strftime("%Y %m %d %H %M %S %w %j", (0,)*9)
ValueError: Year, Month, and Day parameters describe an un-representable DateTime.

======================================================================
FAIL: test_strptime (__main__.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line
 111, in test_strptime
    self.fail("conversion specifier %r failed with '%s' input." %
AssertionError: conversion specifier '%a' failed with 'Fri' input.

----------------------------------------------------------------------
Ran 14 tests in 1.470s

FAILED (failures=1, errors=1)
Traceback (most recent call last):
  File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line
 221, in <module>
  File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line
 217, in test_main
  File "C:\Users\acearl\Applications\IronPython-2.7.1\Lib\test\test_support.py", line 1078, in run_unittest
  File "C:\Users\acearl\Applications\IronPython-2.7.1\Lib\test\test_support.py", line 1061, in _run_suite"-----------------

16. [Status update] Ironpython throw "EOFError: Unable to read beyond the end of the stream." but Cpython does not throw.
http://ironpython.codeplex.com/workitem/23779
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"Works on 2.7.1"-----------------

17. [New comment] ImportError: No module named __hello__,__phello__
http://ironpython.codeplex.com/workitem/23797
User slide_o_mix has commented on the issue:

"Could implement this directly, but these modules are frozen modules, so to be completely compatible, we would need to implement frozen code marshaling."-----------------

18. [Status update] Empty module has more items
http://ironpython.codeplex.com/workitem/812
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"IronPython 2.7.1 (2.7.0.40) on .NET 4.0.30319.239
Type "help", "copyright", "credits" or "license" for more information.
>>> import py1
>>> vars(py1).keys()
['__name__', '__file__', '__doc__', '__builtins__', '__package__']


Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license
>>> import py1
>>> vars(py1).keys()
['__builtins__', '__name__', '__file__', '__doc__', '__package__']" for more information."-----------------

19. [Status update] Hosting: Import a module on a ScriptScope
http://ironpython.codeplex.com/workitem/26505
User slide_o_mix has updated the issue:
Status has changed from Active to Closed with the following comment, 

"Fixed in 8e94cc19a05eea0c0b1f5a32a0ae0c9cf1a4ffab"-----------------

20. [New comment] Hosting: Import a module on a ScriptScope
http://ironpython.codeplex.com/workitem/26505
User slide_o_mix has commented on the issue:

"Fixed in 8e94cc19a05eea0c0b1f5a32a0ae0c9cf1a4ffab



** Closed by slide_o_mix 2/10/2012 11:14 AM"-----------------

21. [Status update] Hosting: Import a module on a ScriptScope
http://ironpython.codeplex.com/workitem/26505
User slide_o_mix has updated the issue:
Status has changed from Closed to Proposed with the following comment, 

"Moving to fixed instead of closed"-----------------

22. [New comment] IP 2.7.1 xml.etree.Elementree#iterparse is not working
http://ironpython.codeplex.com/workitem/31923
User jdhardy has commented on the issue:

"It turns out that iterparse is closely tied to the expat-based XML reader. Once http://ironpython.codeplex.com/workitem/20023 is fixed then this one can be as well.

I improved the error message in 7f9fc2a."
----------------------------------------------



----------------------------------------------
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/20120211/4a85323f/attachment.html>


More information about the Ironpython-users mailing list