couchdbkit icon indicating copy to clipboard operation
couchdbkit copied to clipboard

SchemaDictProperty forces ascii key

Open dannyroberts opened this issue 13 years ago • 1 comments

https://github.com/benoitc/couchdbkit/commit/038ee178393f13c9a5c45548442d53c41ab16bca

It seems like instead of forcing to a str it should do a check such as

assert isinstance(index, basestring)

or explicitly converting ints if that was the purpose. Alternatively, we could change str to unicode and call it a day.

dannyroberts avatar Nov 21 '12 17:11 dannyroberts

i am adding ti to the list of changes for the python 3 release for now. str/unicode/bytes will be seriously reworked at that time. I think having an assert may be good at that point anyway.

benoitc avatar Feb 09 '13 20:02 benoitc