[Python-Dev] [Python-checkins] r88526 - in python/branches/release32-maint/Lib: collections.py test/test_collections.py

Éric Araujo merwok at netwok.org
Sat Feb 26 15:40:43 CET 2011


Hi,

> Author: raymond.hettinger
> New Revision: 88526
> Log: Add tests for the collections helper class and sync-up with py3k branch.

> Modified: python/branches/release32-maint/Lib/collections.py
> +    def new_child(self):                        # like Django's Context.push()
> +        'New ChainMap with a new dict followed by all previous maps.'
> +        return self.__class__({}, *self.maps)
> +
> +    @property
> +    def parents(self):                          # like Django's Context.pop()
> +        'New ChainMap from maps[1:].'
> +        return self.__class__(*self.maps[1:])

Isn’t this considered a new feature, unsuitable for 3.2?  (I mean no
disrespect, I just want to understand better what kind of changes can go
in each type of branch.)

Regards


More information about the Python-Dev mailing list