[Ironpython-users] IronPython, Daily Digest 10/16/2014
CodePlex
no_reply at codeplex.com
Fri Oct 17 09:27:01 CEST 2014
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New issue] dict.copy() raises SystemError if None is used as a key
2. [New comment] dict.copy() raises SystemError if None is used as a key
----------------------------------------------
ISSUES
1. [New issue] dict.copy() raises SystemError if None is used as a key
http://ironpython.codeplex.com/workitem/35626
User tcalmant has proposed the issue:
"When copying a dictionary containing a key set to None, a SystemError is raised:
IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.34014 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> {1: 2}.copy()
{1: 2}
>>> {None: 2}.copy()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: Object reference not set to an instance of an object.
FYI, the copy.copy() method works well in that case:
>>> import copy
>>> copy.copy({None:2})
{None: 2}
"-----------------
2. [New comment] dict.copy() raises SystemError if None is used as a key
http://ironpython.codeplex.com/workitem/35626
User tcalmant has commented on the issue:
"<p>The exception occurs only when trying to access the content of the dictionary, not during the copy process.</p><p>```<br>>>> {None: 2}.copy()<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>SystemError: La référence d'objet n'est pas définie à une instance d'un objet.<br>>>> b = {None: 2}.copy()<br>>>> id(b)<br>43<br>>>> b<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>SystemError: Object reference not set to an instance of an object.<br>```</p>"
----------------------------------------------
----------------------------------------------
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/20141017/e0110f8d/attachment.html>
More information about the Ironpython-users
mailing list