Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jaraco.collections for 
openSUSE:Factory checked in at 2022-12-04 14:57:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jaraco.collections (Old)
 and      /work/SRC/openSUSE:Factory/.python-jaraco.collections.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jaraco.collections"

Sun Dec  4 14:57:35 2022 rev:9 rq:1039668 version:3.8.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jaraco.collections/python-jaraco.collections.changes
      2022-11-10 14:21:45.366170252 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jaraco.collections.new.1835/python-jaraco.collections.changes
    2022-12-04 14:57:38.568024300 +0100
@@ -1,0 +2,6 @@
+Fri Dec  2 18:07:12 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- Update to 3.8.0 
+  * Made DictStack mutable.
+
+-------------------------------------------------------------------

Old:
----
  jaraco.collections-3.7.0.tar.gz

New:
----
  jaraco.collections-3.8.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jaraco.collections.spec ++++++
--- /var/tmp/diff_new_pack.4pk71A/_old  2022-12-04 14:57:39.032026973 +0100
+++ /var/tmp/diff_new_pack.4pk71A/_new  2022-12-04 14:57:39.040027019 +0100
@@ -18,7 +18,7 @@
 
 %define skip_python2 1
 Name:           python-jaraco.collections
-Version:        3.7.0
+Version:        3.8.0
 Release:        0
 Summary:        Tools to work with collections
 License:        MIT

++++++ jaraco.collections-3.7.0.tar.gz -> jaraco.collections-3.8.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jaraco.collections-3.7.0/CHANGES.rst 
new/jaraco.collections-3.8.0/CHANGES.rst
--- old/jaraco.collections-3.7.0/CHANGES.rst    2022-10-29 11:28:56.000000000 
+0200
+++ new/jaraco.collections-3.8.0/CHANGES.rst    2022-11-07 00:30:52.000000000 
+0100
@@ -1,3 +1,8 @@
+v3.8.0
+======
+
+Made ``DictStack`` mutable.
+
 v3.7.0
 ======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jaraco.collections-3.7.0/PKG-INFO 
new/jaraco.collections-3.8.0/PKG-INFO
--- old/jaraco.collections-3.7.0/PKG-INFO       2022-10-29 11:29:36.534370700 
+0200
+++ new/jaraco.collections-3.8.0/PKG-INFO       2022-11-07 00:31:22.247982300 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jaraco.collections
-Version: 3.7.0
+Version: 3.8.0
 Summary: Collection objects similar to those in stdlib by jaraco
 Home-page: https://github.com/jaraco/jaraco.collections
 Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jaraco.collections-3.7.0/jaraco/collections.py 
new/jaraco.collections-3.8.0/jaraco/collections.py
--- old/jaraco.collections-3.7.0/jaraco/collections.py  2022-10-29 
11:28:56.000000000 +0200
+++ new/jaraco.collections-3.8.0/jaraco/collections.py  2022-11-07 
00:30:52.000000000 +0100
@@ -579,7 +579,7 @@
         return key
 
 
-class DictStack(list, collections.abc.Mapping):
+class DictStack(list, collections.abc.MutableMapping):
     """
     A stack of dictionaries that behaves as a view on those dictionaries,
     giving preference to the last.
@@ -596,11 +596,12 @@
     >>> stack.push(dict(a=3))
     >>> stack['a']
     3
+    >>> stack['a'] = 4
     >>> set(stack.keys()) == set(['a', 'b', 'c'])
     True
-    >>> set(stack.items()) == set([('a', 3), ('b', 2), ('c', 2)])
+    >>> set(stack.items()) == set([('a', 4), ('b', 2), ('c', 2)])
     True
-    >>> dict(**stack) == dict(stack) == dict(a=3, c=2, b=2)
+    >>> dict(**stack) == dict(stack) == dict(a=4, c=2, b=2)
     True
     >>> d = stack.pop()
     >>> stack['a']
@@ -611,6 +612,9 @@
     >>> stack.get('b', None)
     >>> 'c' in stack
     True
+    >>> del stack['c']
+    >>> dict(stack)
+    {'a': 1}
     """
 
     def __iter__(self):
@@ -631,6 +635,18 @@
     def __len__(self):
         return len(list(iter(self)))
 
+    def __setitem__(self, key, item):
+        last = list.__getitem__(self, -1)
+        return last.__setitem__(key, item)
+
+    def __delitem__(self, key):
+        last = list.__getitem__(self, -1)
+        return last.__delitem__(key)
+
+    # workaround for mypy confusion
+    def pop(self, *args, **kwargs):
+        return list.pop(self, *args, **kwargs)
+
 
 class BijectiveMap(dict):
     """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jaraco.collections-3.7.0/jaraco.collections.egg-info/PKG-INFO 
new/jaraco.collections-3.8.0/jaraco.collections.egg-info/PKG-INFO
--- old/jaraco.collections-3.7.0/jaraco.collections.egg-info/PKG-INFO   
2022-10-29 11:29:36.000000000 +0200
+++ new/jaraco.collections-3.8.0/jaraco.collections.egg-info/PKG-INFO   
2022-11-07 00:31:22.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jaraco.collections
-Version: 3.7.0
+Version: 3.8.0
 Summary: Collection objects similar to those in stdlib by jaraco
 Home-page: https://github.com/jaraco/jaraco.collections
 Author: Jason R. Coombs

Reply via email to