[Bug 575185] New: Review Request: python-bunch - python dictionary with attribute-style access
bugzilla at redhat.com
bugzilla at redhat.com
Fri Mar 19 17:10:52 UTC 2010
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: Review Request: python-bunch - python dictionary with attribute-style access
https://bugzilla.redhat.com/show_bug.cgi?id=575185
Summary: Review Request: python-bunch - python dictionary with
attribute-style access
Product: Fedora
Version: rawhide
Platform: All
OS/Version: Linux
Status: NEW
Severity: medium
Priority: medium
Component: Package Review
AssignedTo: nobody at fedoraproject.org
ReportedBy: a.badger at gmail.com
QAContact: extras-qa at fedoraproject.org
CC: notting at redhat.com, fedora-package-review at redhat.com
Estimated Hours: 0.0
Classification: Fedora
Spec URL: http://toshio.fedorapeople.org/packages/python-bunch.spec
SRPM URL:
http://toshio.fedorapeople.org/packages/python-bunch-1.0.0-1.fc12.src.rpm
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')])
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the package-review
mailing list