Skip to content

Bunch is completely broken when using unicode strings #10

Description

@bjorkegeek

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
>>> print repr(b)
Traceback (most recent call last):
  File "", line 1, in 
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 7: ordinal not in range(128)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions