Fedora 16 Update: python-bunch-1.0.1-1.fc16

updates at fedoraproject.org updates at fedoraproject.org
Wed Jan 11 06:17:39 UTC 2012


--------------------------------------------------------------------------------
Fedora Update Notification
FEDORA-2011-17556
2011-12-30 00:12:37
--------------------------------------------------------------------------------

Name        : python-bunch
Product     : Fedora 16
Version     : 1.0.1
Release     : 1.fc16
URL         : http://github.com/dsc/bunch
Summary     : Python dictionary with attribute-style access
Description :
python-bunch provides a python class which can perform as a dict whose keys are
also accessible as attributes, similar to JavaScript objects.  For instance::

  >>> import bunch
  >>> people = bunch.Bunch({'alice': 'here', 'bob': 'there'})
  >>> print people['alice'], people.alice
  here here

The piece of python-bunch that sets it apart from similar modules found inside
other projects is the bunchify() function which recursively converts from
a dict to a Bunch::

  >>> multi_level = {'array': ['scalar', {'mapping': 'to show recursion'} ]}
  >>> bunch.bunchify(multi_level)
  Bunch(array=['scalar', Bunch(mapping='to show recursion')])

--------------------------------------------------------------------------------
Update Information:

* Add ability to serialize bunch's to yaml and json
--------------------------------------------------------------------------------
ChangeLog:

* Thu Dec 29 2011 Toshio Kuratomi <toshio at fedoraproject.org> - 1.0.1-1
- New upstream release that adds pyyaml and json serialization
--------------------------------------------------------------------------------
References:

  [ 1 ] Bug #770697 - python-bunch-1.0.1 is available
        https://bugzilla.redhat.com/show_bug.cgi?id=770697
--------------------------------------------------------------------------------

This update can be installed with the "yum" update program.  Use 
su -c 'yum update python-bunch' at the command line.
For more information, refer to "Managing Software with yum",
available at http://docs.fedoraproject.org/yum/.

All packages are signed with the Fedora Project GPG key.  More details on the
GPG keys used by the Fedora Project can be found at
https://fedoraproject.org/keys
--------------------------------------------------------------------------------


More information about the package-announce mailing list