[Ironpython-users] IronPython, Daily Digest 7/19/2011

no_reply at codeplex.com no_reply at codeplex.com
Wed Jul 20 16:42:45 CEST 2011


Hi ironpython,

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

In today's digest:ISSUES

1. [New issue] Traceback is useless when exception raised inside of decorator/with wrapper
2. [New comment] can not compile function with 14+ arguments with pyc.py (Popen.__init__ in subprocess.py)
3. [New comment] builtin codecs can not be found in executable compiled with pyc.py
4. [New issue] Inconsistent Behavior of %d in string substitution

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

ISSUES

1. [New issue] Traceback is useless when exception raised inside of decorator/with wrapper
http://ironpython.codeplex.com/workitem/31043
User rutsky has proposed the issue:

"When exception is raised inside bunch of context wrappers provided by IronPython exception traceback is almost useless.
Please see attached sample code which gives under CPython 2.6.5 following output (python.exe context_bug.py):

Start 'test' stage
  test() call f()
  f() call g()
  g() raise exception now
End 'test' stage
Traceback (most recent call last):
  File "context_bug.py", line 52, in <module>
    test()
  File "context_bug.py", line 20, in wrapper
    return func(*args, **kwargs)
  File "context_bug.py", line 41, in test
    f()
  File "context_bug.py", line 46, in f
    g()
  File "context_bug.py", line 50, in g
    raise Exception("some exception")
Exception: some exception

And under IronPython 2.6.2 (2.6.10920.0) on .NET 2.0.50727.5444 (ipy.exe context_bug.py):

Start 'test' stage
  test() call f()
  f() call g()
  g() raise exception now
End 'test' stage
Traceback (most recent call last):
  File "context_bug.py", line 52, in <module>
  File "C:\Program Files (x86)\IronPython 2.6\Lib\contextlib.py", line 34, in __exit__
  File "context_bug.py", line 10, in enter_stage
Exception: some exception

Note that IronPython doesn't print any information that exception was inside f() and g() calls."-----------------

2. [New comment] can not compile function with 14+ arguments with pyc.py (Popen.__init__ in subprocess.py)
http://ironpython.codeplex.com/workitem/31033
User roxaz911 has commented on the issue:

"works in 2.7.1 beta 1"-----------------

3. [New comment] builtin codecs can not be found in executable compiled with pyc.py
http://ironpython.codeplex.com/workitem/31032
User roxaz911 has commented on the issue:

"works in 2.7.1 beta 1"-----------------

4. [New issue] Inconsistent Behavior of %d in string substitution
http://ironpython.codeplex.com/workitem/31049
User WombatPM has proposed the issue:

"%d operator in string substitution behavior is different in IronPython 2.7 than in CPython 2.7 (ActiveState)

%0.3d  produces different output than %03d in IronPython.

C:\>type test.py
print "%0.3d" % 5
print "%03d" % 5

C:\>python test.py
005
005

C:\>ipy.exe test.py
5
005"
----------------------------------------------



----------------------------------------------
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/20110720/b8114e9c/attachment.html>


More information about the Ironpython-users mailing list