bunch icon indicating copy to clipboard operation
bunch copied to clipboard

A Bunch is a Python dictionary that provides attribute-style access (a la JavaScript objects).

Results 47 bunch issues
Sort by recently updated
recently updated
newest added

Hello, I did this ``` #!/usr/bin/env python # -*- coding: utf-8 -*- from flufl.enum import Enum from bunch import Bunch class MyEnum(Enum): VAL1 = 1 VAL2 = 2 VAL3 =...

Test using dictionary: >>> d={} >>> d[u'r\xf6k']="smoke" >>> u'r\xf6k' in d True >>> print repr(d) {u'r\xf6k': 'smoke'} Test using bunch: >>> b=Bunch() >>> b[u'r\xf6k']="smoke" >>> u'r\xf6k' in b False >>>...

2.0
tests

Those are bad since they catch every exception out there, including KeyboardInterrupt and the like. The first block is entirely removed as the two function call are not supposed to...

fallback to the stdlib json module.

platform.version might work on some platforms, but does NOT always start with the python version number (On Ubuntu, at least, it doesn't even contain the version number!).

Hi David, care to take a look at this pull request? The thing is that there are some core operations, the most common ones, that I'd like to speed up....

interesting

The recent commit to allow python3 support introduced a relative import syntax that is only available on python-2.6 or later. This change request modifies the import so that it works...

The recent merge for python3 compatibility contained some code that wasn't correct. Checking for the version of python that code is being run on should compare against sys.version_info. The current...

Things look a bit strange at: https://github.com/dsc/bunch/blob/master/bunch/__init__.py#L286-L290 I think the imports should be the other way around: - try to import `simplejson as json` - if it succeeds, you're fine...

in setup.py line 11: ``` package_file = open(join(HERE, 'bunch/__init__.py'), 'rU') ``` "U" option for universal newline is no longer supported in python 3.11