New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'unicode' object has no attribute 'items' #68
Comments
@alanhamlett, |
Sometimes I pass strings from SQLAlchemy, which prefers |
Thanks for clarifying your use case. We'll discuss this change and let you know if we have any further questions. |
Hi @alanhamlett, |
Ok, just want to say that
For example as soon as you get a string from the user or from the network, convert it to You're going to run into a lot of cases where |
Also, the 2 most popular Python web frameworks[1] both default to
|
This line misses Python2 unicode strings, eventually causing an
AttributeError
exception.Should be
basestring
instead ofstr
, or even better use six.string_types for Python 3 compatibility.The text was updated successfully, but these errors were encountered: