#18175: SortedDict issue when copied with copy.copy
-------------------------------+--------------------
     Reporter:  linovia        |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Uncategorized  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 If SortedDict is copied using the copy.copy, the data are duplicated.
 {{{

 >>> from django.utils.datastructures import SortedDict
 >>> from copy import copy
 >>> test = SortedDict()
 >>> test['a']=1
 >>> copy(test)
 {'a': 1, 'a': 1}
 >>> test
 {'a': 1, 'a': 1}
 }}}

 You'll find joined a test patch to show this issue.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18175>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to