[Ironpython-users] IronPython, Daily Digest 2/12/2015

CodePlex no_reply at codeplex.com
Fri Feb 13 09:28:20 CET 2015


Hi ironpython,

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

In today's digest:ISSUES

1. [New issue] Unpacking a class that contains __iter__ fails

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

ISSUES

1. [New issue] Unpacking a class that contains __iter__ fails
http://ironpython.codeplex.com/workitem/35843
User Matthew94 has proposed the issue:

"I have a class that overrides iter to allow me to unpack it like a tuple. It works just fine on CPython 2.7 but fails on IronPython 2.7.

As seen below the Error is:
TypeError: print() argument after * must be a sequence, not Object_1$1

Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import register
>>> a = register.Register()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() takes exactly 4 arguments (1 given)
>>> a = register.Register(0,0,0)
>>> from __future__ import print_function
>>> print(*a)
0 0 0
>>> exit()

...

IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.18408 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> import register
>>> from __future__ import print_function
>>> a = register.Register(0,0,0)
>>> print(*a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: print() argument after * must be a sequence, not Object_1$1
"
----------------------------------------------



----------------------------------------------
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/20150213/81ecac17/attachment.html>


More information about the Ironpython-users mailing list