user375348
user375348

Reputation: 789

What characters in key_name?

I wonder what you can use as a key_name? I do a lot of queries on non-ascii unicode characters, I wonder if I can use these as key names to speed up the queries.

Thanks!

Upvotes: 2

Views: 214

Answers (1)

Nicholas Knight
Nicholas Knight

Reputation: 16045

Per the documentation, key_name is a unicode string, though plain str values get converted as ASCII -- so you'll want to make sure you're actually providing a true unicode string (I strongly suggest reading the entire Python Unicode HOWTO).

Upvotes: 5

Related Questions