bunch icon indicating copy to clipboard operation
bunch copied to clipboard

Add support to python 3

Open maxiplux opened this issue 7 years ago • 3 comments

My friend thanks for this amazing library , but please would be possible add support to python 3. I think that is only change iteritems by items() , return Bunch( (k, bunchify(v)) for k,v in items(x) ) . thanks

maxiplux avatar Feb 05 '18 13:02 maxiplux

Dupe of #17

jaraco avatar Oct 30 '18 17:10 jaraco

Come on... Python2 is DEAD, not supporting Python3, really? Crashes in python3...

AttributeError: 'dict' object has no attribute 'iteritems'

dachshund-digital avatar Jul 19 '21 14:07 dachshund-digital

I did the following changes in /python3.8/site-packages/bunch/__init__.py to support Python3: Line 245: return Bunch( (k, bunchify(v)) for k,v in x.items() )
Line 270: return dict( (k, unbunchify(v)) for k,v in x.items() )

Now from bunch import bunchify is working.

mnaielksu1 avatar Feb 16 '24 17:02 mnaielksu1