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>&gt;&gt;&gt; {None: 
2}.copy()<br>Traceback (most recent call last):<br>  File 
&quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>SystemError: La 
référence d'objet n'est pas définie à une instance d'un objet.<br>&gt;&gt;&gt; 
b = {None: 2}.copy()<br>&gt;&gt;&gt; id(b)<br>43<br>&gt;&gt;&gt; b<br>Traceback 
(most recent call last):<br>  File &quot;&lt;stdin&gt;&quot;, line 1, in 
&lt;module&gt;<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.
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to